Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class AllowedMentions(val parse: List<AllowedMentionType>, val users: List<String>, val roles: List<String>, val repliedUser: OptionalBoolean = OptionalBoolean.Missing)
Link copied to clipboard
data class AllRemovedMessageReactions(val channelId: Snowflake, val messageId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing)
Link copied to clipboard
data class ApplicationCommandOption(val type: ApplicationCommandOptionType, val name: String, val nameLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val description: String, val descriptionLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val default: OptionalBoolean = OptionalBoolean.Missing, val required: OptionalBoolean = OptionalBoolean.Missing, val choices: Optional<List<Choice>> = Optional.Missing(), val autocomplete: OptionalBoolean = OptionalBoolean.Missing, val options: Optional<List<ApplicationCommandOption>> = Optional.Missing(), val channelTypes: Optional<List<ChannelType>> = Optional.Missing(), val minValue: Optional<JsonPrimitive> = Optional.Missing(), val maxValue: Optional<JsonPrimitive> = Optional.Missing(), val minLength: OptionalInt = OptionalInt.Missing, val maxLength: OptionalInt = OptionalInt.Missing)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Each ApplicationRoleConnectionMetadataType offers a comparison operation that allows guilds to configure role requirements based on metadata values stored by the bot. Bots specify a 'metadata value' for each user and guilds specify the required 'guild's configured value' within the guild role settings.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class AuditLogChange<T>(val new: T?, val old: T?, val key: AuditLogChangeKey<T>)
Link copied to clipboard
data class AuditLogEntryOptionalInfo(val applicationId: OptionalSnowflake = OptionalSnowflake.Missing, val autoModerationRuleName: Optional<String> = Optional.Missing(), val autoModerationRuleTriggerType: Optional<String> = Optional.Missing(), val deleteMemberDays: Optional<String> = Optional.Missing(), val membersRemoved: Optional<String> = Optional.Missing(), val channelId: OptionalSnowflake = OptionalSnowflake.Missing, val messageId: OptionalSnowflake = OptionalSnowflake.Missing, val count: Optional<String> = Optional.Missing(), val id: OptionalSnowflake = OptionalSnowflake.Missing, val type: Optional<OverwriteType> = Optional.Missing(), val roleName: Optional<String> = Optional.Missing(), val integrationType: Optional<String> = Optional.Missing())
Link copied to clipboard
Link copied to clipboard

Indicates in what event context a rule should be checked.

Link copied to clipboard

An internally pre-defined wordset which will be searched for in content.

Link copied to clipboard

Characterizes the type of content which can trigger the rule.

Link copied to clipboard
sealed interface BaseDiscordApplication
Link copied to clipboard
sealed interface BaseDiscordInvite
Link copied to clipboard
data class BulkDeleteData(val ids: List<Snowflake>, val channelId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class CommandGroup(val name: String, val options: Optional<List<SubCommand>> = Optional.Missing()) : Option
Link copied to clipboard
data class DefaultReaction(val emojiId: Snowflake?, val emojiName: String?)
Link copied to clipboard
data class DeletedMessage(val id: Snowflake, val channelId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing)
Link copied to clipboard
data class DiscordActivity(val name: String, val type: ActivityType, val url: Optional<String?> = Optional.Missing(), val createdAt: InstantInEpochMilliseconds, val timestamps: Optional<DiscordActivityTimestamps> = Optional.Missing(), val applicationId: OptionalSnowflake = OptionalSnowflake.Missing, val details: Optional<String?> = Optional.Missing(), val state: Optional<String?> = Optional.Missing(), val emoji: Optional<DiscordActivityEmoji?> = Optional.Missing(), val party: Optional<DiscordActivityParty> = Optional.Missing(), val assets: Optional<DiscordActivityAssets> = Optional.Missing(), val secrets: Optional<DiscordActivitySecrets> = Optional.Missing(), val instance: OptionalBoolean = OptionalBoolean.Missing, val flags: Optional<ActivityFlags> = Optional.Missing(), val buttons: Optional<List<String>> = Optional.Missing())
Link copied to clipboard
data class DiscordActivityAssets(val largeImage: Optional<String> = Optional.Missing(), val largeText: Optional<String> = Optional.Missing(), val smallImage: Optional<String> = Optional.Missing(), val smallText: Optional<String> = Optional.Missing())
Link copied to clipboard
data class DiscordActivityEmoji(val name: String, val id: OptionalSnowflake = OptionalSnowflake.Missing, val animated: OptionalBoolean = OptionalBoolean.Missing)
Link copied to clipboard
data class DiscordActivityParty(val id: Optional<String> = Optional.Missing(), val size: Optional<DiscordActivityPartySize> = Optional.Missing())
Link copied to clipboard
Link copied to clipboard
data class DiscordActivitySecrets(val join: Optional<String> = Optional.Missing(), val spectate: Optional<String> = Optional.Missing(), val match: Optional<String> = Optional.Missing())
Link copied to clipboard
data class DiscordActivityTimestamps(val start: Optional<InstantInEpochMilliseconds> = Optional.Missing(), val end: Optional<InstantInEpochMilliseconds> = Optional.Missing())
Link copied to clipboard
data class DiscordAddedGuildMember(val user: Optional<DiscordUser> = Optional.Missing(), val nick: Optional<String?> = Optional.Missing(), val roles: List<Snowflake>, val joinedAt: Instant?, val premiumSince: Optional<Instant?> = Optional.Missing(), val deaf: Boolean, val mute: Boolean, val flags: GuildMemberFlags, val guildId: Snowflake, val pending: OptionalBoolean = OptionalBoolean.Missing, val avatar: Optional<String?> = Optional.Missing(), val communicationDisabledUntil: Optional<Instant?> = Optional.Missing())
Link copied to clipboard
data class DiscordApplication(val id: Snowflake, val name: String, val icon: String?, val description: String, val rpcOrigins: Optional<List<String>> = Optional.Missing(), val botPublic: Boolean, val botRequireCodeGrant: Boolean, val termsOfServiceUrl: Optional<String> = Optional.Missing(), val privacyPolicyUrl: Optional<String> = Optional.Missing(), val owner: Optional<DiscordUser> = Optional.Missing(), val verifyKey: String, val team: DiscordTeam?, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val primarySkuId: OptionalSnowflake = OptionalSnowflake.Missing, val slug: Optional<String> = Optional.Missing(), val coverImage: Optional<String> = Optional.Missing(), val flags: Optional<ApplicationFlags> = Optional.Missing(), val tags: Optional<List<String>> = Optional.Missing(), val installParams: Optional<InstallParams> = Optional.Missing(), val customInstallUrl: Optional<String> = Optional.Missing(), val roleConnectionsVerificationUrl: Optional<String?> = Optional.Missing()) : BaseDiscordApplication

A representation of the Application Structure.

Link copied to clipboard
data class DiscordApplicationCommand(val id: Snowflake, val type: Optional<ApplicationCommandType> = Optional.Missing(), val applicationId: Snowflake, val name: String, val nameLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val description: String?, val descriptionLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val options: Optional<List<ApplicationCommandOption>> = Optional.Missing(), val defaultMemberPermissions: Permissions?, val dmPermission: OptionalBoolean = OptionalBoolean.Missing, val defaultPermission: OptionalBoolean? = OptionalBoolean.Missing, val nsfw: OptionalBoolean = OptionalBoolean.Missing, val version: Snowflake)
Link copied to clipboard
data class DiscordApplicationRoleConnectionMetadata(val type: ApplicationRoleConnectionMetadataType, val key: String, val name: String, val nameLocalizations: Optional<Map<Locale, String>> = Optional.Missing(), val description: String, val descriptionLocalizations: Optional<Map<Locale, String>> = Optional.Missing())
Link copied to clipboard
data class DiscordAttachment(val id: Snowflake, val filename: String, val description: Optional<String> = Optional.Missing(), val contentType: Optional<String> = Optional.Missing(), val size: Int, val url: String, val proxyUrl: String, val height: OptionalInt? = OptionalInt.Missing, val width: OptionalInt? = OptionalInt.Missing, val ephemeral: OptionalBoolean = OptionalBoolean.Missing, val durationSecs: Optional<DurationInDoubleSeconds> = Optional.Missing(), val waveform: Optional<String> = Optional.Missing(), val flags: Optional<AttachmentFlags> = Optional.Missing())

A representation of a Discord Attachment structure.

Link copied to clipboard
data class DiscordAuditLog(val webhooks: List<DiscordWebhook>, val users: List<DiscordUser>, val applicationCommands: List<DiscordApplicationCommand>, val auditLogEntries: List<DiscordAuditLogEntry>, val autoModerationRules: List<DiscordAutoModerationRule>, val integrations: List<DiscordPartialIntegration>, val threads: List<DiscordChannel>)
Link copied to clipboard
data class DiscordAuditLogEntry(val targetId: Snowflake?, val changes: Optional<List<AuditLogChange<in Any?>>> = Optional.Missing(), val userId: Snowflake?, val id: Snowflake, val actionType: AuditLogEvent, val options: Optional<AuditLogEntryOptionalInfo> = Optional.Missing(), val reason: Optional<String> = Optional.Missing())
Link copied to clipboard
data class DiscordAuditLogRoleChange(val id: String, val name: String? = null, val color: Int? = null, val hoist: Boolean? = null, val position: Int? = null, val permissions: Permissions? = null, val managed: Boolean? = null, val mentionable: Boolean? = null)
Link copied to clipboard
data class DiscordAutoComplete(val choices: List<Choice>)
Link copied to clipboard
Link copied to clipboard
data class DiscordAutoModerationActionMetadata(val channelId: OptionalSnowflake = OptionalSnowflake.Missing, val durationSeconds: Optional<DurationInSeconds> = Optional.Missing(), val customMessage: Optional<String> = Optional.Missing())
Link copied to clipboard
data class DiscordAutoModerationRule(val id: Snowflake, val guildId: Snowflake, val name: String, val creatorId: Snowflake, val eventType: AutoModerationRuleEventType, val triggerType: AutoModerationRuleTriggerType, val triggerMetadata: DiscordAutoModerationRuleTriggerMetadata, val actions: List<DiscordAutoModerationAction>, val enabled: Boolean, val exemptRoles: List<Snowflake>, val exemptChannels: List<Snowflake>)
Link copied to clipboard
data class DiscordAutoModerationRuleTriggerMetadata(val keywordFilter: Optional<List<String>> = Optional.Missing(), val regexPatterns: Optional<List<String>> = Optional.Missing(), val presets: Optional<List<AutoModerationRuleKeywordPresetType>> = Optional.Missing(), val allowList: Optional<List<String>> = Optional.Missing(), val mentionTotalLimit: OptionalInt = OptionalInt.Missing, val mentionRaidProtectionEnabled: OptionalBoolean = OptionalBoolean.Missing)
Link copied to clipboard
data class DiscordBotActivity(val name: String, val type: ActivityType, val url: Optional<String?> = Optional.Missing(), val state: Optional<String?> = Optional.Missing())
Link copied to clipboard
data class DiscordChannel(val id: Snowflake, val type: ChannelType, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val position: OptionalInt = OptionalInt.Missing, val permissionOverwrites: Optional<List<Overwrite>> = Optional.Missing(), val name: Optional<String?> = Optional.Missing(), val topic: Optional<String?> = Optional.Missing(), val nsfw: OptionalBoolean = OptionalBoolean.Missing, val lastMessageId: OptionalSnowflake? = OptionalSnowflake.Missing, val bitrate: OptionalInt = OptionalInt.Missing, val userLimit: OptionalInt = OptionalInt.Missing, val rateLimitPerUser: Optional<DurationInSeconds> = Optional.Missing(), val recipients: Optional<List<DiscordUser>> = Optional.Missing(), val icon: Optional<String?> = Optional.Missing(), val ownerId: OptionalSnowflake = OptionalSnowflake.Missing, val applicationId: OptionalSnowflake = OptionalSnowflake.Missing, val parentId: OptionalSnowflake? = OptionalSnowflake.Missing, val lastPinTimestamp: Optional<Instant?> = Optional.Missing(), val rtcRegion: Optional<String?> = Optional.Missing(), val videoQualityMode: Optional<VideoQualityMode> = Optional.Missing(), val permissions: Optional<Permissions> = Optional.Missing(), val messageCount: OptionalInt = OptionalInt.Missing, val memberCount: OptionalInt = OptionalInt.Missing, val threadMetadata: Optional<DiscordThreadMetadata> = Optional.Missing(), val defaultAutoArchiveDuration: Optional<ArchiveDuration> = Optional.Missing(), val member: Optional<DiscordThreadMember> = Optional.Missing(), val flags: Optional<ChannelFlags> = Optional.Missing(), val totalMessageSent: OptionalInt = OptionalInt.Missing, val availableTags: Optional<List<ForumTag>> = Optional.Missing(), val appliedTags: Optional<List<Snowflake>> = Optional.Missing(), val defaultReactionEmoji: Optional<DefaultReaction?> = Optional.Missing(), val defaultThreadRateLimitPerUser: Optional<DurationInSeconds> = Optional.Missing(), val defaultSortOrder: Optional<SortOrderType?> = Optional.Missing(), val defaultForumLayout: Optional<ForumLayoutType> = Optional.Missing(), val message: Optional<DiscordMessage> = Optional.Missing())
Link copied to clipboard
data class DiscordChatComponent(val type: ComponentType, val style: Optional<ButtonStyle> = Optional.Missing(), val label: Optional<String> = Optional.Missing(), val emoji: Optional<DiscordPartialEmoji> = Optional.Missing(), val customId: Optional<String> = Optional.Missing(), val url: Optional<String> = Optional.Missing(), val disabled: OptionalBoolean = OptionalBoolean.Missing, val components: Optional<List<DiscordComponent>> = Optional.Missing(), val options: Optional<List<DiscordSelectOption>> = Optional.Missing(), val placeholder: Optional<String> = Optional.Missing(), val defaultValues: Optional<List<DiscordSelectDefaultValue>> = Optional.Missing(), val minValues: OptionalInt = OptionalInt.Missing, val maxValues: OptionalInt = OptionalInt.Missing, val minLength: OptionalInt = OptionalInt.Missing, val maxLength: OptionalInt = OptionalInt.Missing, val required: OptionalBoolean = OptionalBoolean.Missing, val value: Optional<String> = Optional.Missing(), val channelTypes: Optional<List<ChannelType>> = Optional.Missing(), val skuId: OptionalSnowflake = OptionalSnowflake.Missing) : DiscordComponent
Link copied to clipboard
data class DiscordClientStatus(val desktop: Optional<PresenceStatus> = Optional.Missing(), val mobile: Optional<PresenceStatus> = Optional.Missing(), val web: Optional<PresenceStatus> = Optional.Missing())
Link copied to clipboard
data class DiscordConnection(val id: String, val name: String, val type: String, val revoked: OptionalBoolean = OptionalBoolean.Missing, val integrations: Optional<List<DiscordIntegration>> = Optional.Missing(), val verified: Boolean, val friendSync: Boolean, val showActivity: Boolean, val visibility: DiscordConnectionVisibility)

A representation of the DDiscord Connection Object structure. The connection object that the user has attached.

Link copied to clipboard
data class DiscordDeletedGuildRole(val guildId: Snowflake, val id: Snowflake)
Link copied to clipboard
data class DiscordEmbed(val title: Optional<String> = Optional.Missing(), val type: Optional<EmbedType> = Optional.Missing(), val description: Optional<String> = Optional.Missing(), val url: Optional<String> = Optional.Missing(), val timestamp: Optional<Instant> = Optional.Missing(), val color: OptionalInt = OptionalInt.Missing, val footer: Optional<DiscordEmbed.Footer> = Optional.Missing(), val image: Optional<DiscordEmbed.Image> = Optional.Missing(), val thumbnail: Optional<DiscordEmbed.Thumbnail> = Optional.Missing(), val video: Optional<DiscordEmbed.Video> = Optional.Missing(), val provider: Optional<DiscordEmbed.Provider> = Optional.Missing(), val author: Optional<DiscordEmbed.Author> = Optional.Missing(), val fields: Optional<List<DiscordEmbed.Field>> = Optional.Missing())

A representation of a Discord Embed structure.

Link copied to clipboard
data class DiscordEmoji(val id: Snowflake?, val name: String?, val roles: Optional<List<Snowflake>> = Optional.Missing(), val user: Optional<DiscordUser> = Optional.Missing(), val requireColons: OptionalBoolean = OptionalBoolean.Missing, val managed: OptionalBoolean = OptionalBoolean.Missing, val animated: OptionalBoolean = OptionalBoolean.Missing, val available: OptionalBoolean = OptionalBoolean.Missing)

A representation of a Discord Emoji structure.

Link copied to clipboard
data class DiscordEntitlement(val id: Snowflake, val skuId: Snowflake, val applicationId: Snowflake, val userId: OptionalSnowflake = OptionalSnowflake.Missing, val type: EntitlementType, val deleted: Boolean, val startsAt: Optional<Instant> = Optional.Missing(), val endsAt: Optional<Instant?> = Optional.Missing(), val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val consumed: OptionalBoolean = OptionalBoolean.Missing)

An instance of a Discord Entitlement.

Link copied to clipboard
data class DiscordGuild(val id: Snowflake, val name: String, val icon: String?, val iconHash: Optional<String?> = Optional.Missing(), val splash: Optional<String?> = Optional.Missing(), val discoverySplash: Optional<String?> = Optional.Missing(), val owner: OptionalBoolean = OptionalBoolean.Missing, val ownerId: Snowflake, val permissions: Optional<Permissions> = Optional.Missing(), val region: String, val afkChannelId: Snowflake?, val afkTimeout: DurationInSeconds, val widgetEnabled: OptionalBoolean = OptionalBoolean.Missing, val widgetChannelId: OptionalSnowflake? = OptionalSnowflake.Missing, val verificationLevel: VerificationLevel, val defaultMessageNotifications: DefaultMessageNotificationLevel, val explicitContentFilter: ExplicitContentFilter, val roles: List<DiscordRole>, val emojis: List<DiscordEmoji>, val features: List<GuildFeature>, val mfaLevel: MFALevel, val applicationId: Snowflake?, val systemChannelId: Snowflake?, val systemChannelFlags: SystemChannelFlags, val rulesChannelId: Snowflake?, val joinedAt: Optional<Instant> = Optional.Missing(), val large: OptionalBoolean = OptionalBoolean.Missing, val unavailable: OptionalBoolean = OptionalBoolean.Missing, val memberCount: OptionalInt = OptionalInt.Missing, val voiceStates: Optional<List<DiscordVoiceState>> = Optional.Missing(), val members: Optional<List<DiscordGuildMember>> = Optional.Missing(), val channels: Optional<List<DiscordChannel>> = Optional.Missing(), val threads: Optional<List<DiscordChannel>> = Optional.Missing(), val presences: Optional<List<DiscordPresenceUpdate>> = Optional.Missing(), val maxPresences: OptionalInt? = OptionalInt.Missing, val maxMembers: OptionalInt = OptionalInt.Missing, val vanityUrlCode: String?, val description: String?, val banner: String?, val premiumTier: PremiumTier, val premiumSubscriptionCount: OptionalInt = OptionalInt.Missing, val preferredLocale: String, val publicUpdatesChannelId: Snowflake?, val maxVideoChannelUsers: OptionalInt = OptionalInt.Missing, val maxStageVideoChannelUsers: OptionalInt = OptionalInt.Missing, val approximateMemberCount: OptionalInt = OptionalInt.Missing, val approximatePresenceCount: OptionalInt = OptionalInt.Missing, val welcomeScreen: Optional<DiscordWelcomeScreen> = Optional.Missing(), val nsfwLevel: NsfwLevel, val stageInstances: Optional<List<DiscordStageInstance>> = Optional.Missing(), val stickers: Optional<List<DiscordMessageSticker>> = Optional.Missing(), val guildScheduledEvents: Optional<List<DiscordGuildScheduledEvent>> = Optional.Missing(), val premiumProgressBarEnabled: Boolean, val safetyAlertsChannelId: Snowflake?)

A representation of a Discord Guild structure

Link copied to clipboard
data class DiscordGuildBan(val guildId: Snowflake, val user: DiscordUser)
Link copied to clipboard
Link copied to clipboard
data class DiscordGuildMember(val user: Optional<DiscordUser> = Optional.Missing(), val nick: Optional<String?> = Optional.Missing(), val roles: List<Snowflake>, val joinedAt: Instant?, val premiumSince: Optional<Instant?> = Optional.Missing(), val deaf: OptionalBoolean = OptionalBoolean.Missing, val mute: OptionalBoolean = OptionalBoolean.Missing, val flags: GuildMemberFlags, val pending: OptionalBoolean = OptionalBoolean.Missing, val avatar: Optional<String?> = Optional.Missing(), val communicationDisabledUntil: Optional<Instant?> = Optional.Missing())
Link copied to clipboard
data class DiscordGuildOnboarding(val guildId: Snowflake, val prompts: List<DiscordOnboardingPrompt>, val defaultChannelIds: List<Snowflake>, val enabled: Boolean, val mode: OnboardingMode)
Link copied to clipboard
data class DiscordGuildPreview(val id: Snowflake, val name: String, val icon: String?, val splash: String?, val discoverySplash: String?, val emojis: List<DiscordEmoji>, val features: List<GuildFeature>, val approximateMemberCount: Int, val approximatePresenceCount: Int, val description: String?, val stickers: List<DiscordMessageSticker>)
Link copied to clipboard
data class DiscordGuildRole(val guildId: Snowflake, val role: DiscordRole)
Link copied to clipboard
data class DiscordGuildScheduledEvent(val id: Snowflake, val guildId: Snowflake, val channelId: Snowflake?, val creatorId: OptionalSnowflake? = OptionalSnowflake.Missing, val name: String, val description: Optional<String?> = Optional.Missing(), val scheduledStartTime: Instant, val scheduledEndTime: Instant?, val privacyLevel: GuildScheduledEventPrivacyLevel, val status: GuildScheduledEventStatus, val entityType: ScheduledEntityType, val entityId: Snowflake?, val entityMetadata: GuildScheduledEventEntityMetadata?, val creator: Optional<DiscordUser> = Optional.Missing(), val userCount: OptionalInt = OptionalInt.Missing, val image: Optional<String?> = Optional.Missing())

Representation of a Guild Scheduled Event Structure.

Link copied to clipboard
data class DiscordGuildWidget(val enabled: Boolean, val channelId: Snowflake?)
Link copied to clipboard
data class DiscordIntegration(val id: Snowflake, val name: String, val type: String, val enabled: Boolean, val syncing: OptionalBoolean = OptionalBoolean.Missing, val roleId: OptionalSnowflake = OptionalSnowflake.Missing, val enableEmoticons: OptionalBoolean = OptionalBoolean.Missing, val expireBehavior: Optional<IntegrationExpireBehavior> = Optional.Missing(), val expireGracePeriod: Optional<DurationInDays> = Optional.Missing(), val user: Optional<DiscordUser> = Optional.Missing(), val account: DiscordIntegrationsAccount, val syncedAt: Optional<Instant> = Optional.Missing(), val subscriberCount: OptionalInt = OptionalInt.Missing, val revoked: OptionalBoolean = OptionalBoolean.Missing, val application: Optional<IntegrationApplication> = Optional.Missing(), val guildId: OptionalSnowflake = OptionalSnowflake.Missing)
Link copied to clipboard
data class DiscordIntegrationAccount(val id: String, val name: String)
Link copied to clipboard
data class DiscordIntegrationDelete(val id: Snowflake, val guildId: Snowflake, val applicationId: OptionalSnowflake = OptionalSnowflake.Missing)
Link copied to clipboard
data class DiscordIntegrationsAccount(val id: String, val name: String)
Link copied to clipboard
data class DiscordInteraction(val id: Snowflake, val applicationId: Snowflake, val type: InteractionType, val data: InteractionCallbackData, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val channel: Optional<DiscordChannel> = Optional.Missing(), val channelId: OptionalSnowflake = OptionalSnowflake.Missing, val member: Optional<DiscordInteractionGuildMember> = Optional.Missing(), val user: Optional<DiscordUser> = Optional.Missing(), val token: String, val version: Int, val message: Optional<DiscordMessage> = Optional.Missing(), val appPermissions: Optional<Permissions> = Optional.Missing(), val locale: Optional<Locale> = Optional.Missing(), val guildLocale: Optional<Locale> = Optional.Missing(), val entitlements: Optional<List<DiscordEntitlement>> = Optional.Missing())
Link copied to clipboard
data class DiscordInteractionGuildMember(val user: Optional<DiscordUser> = Optional.Missing(), val nick: Optional<String?> = Optional.Missing(), val roles: List<Snowflake>, val joinedAt: Instant?, val premiumSince: Optional<Instant?> = Optional.Missing(), val permissions: Permissions, val flags: GuildMemberFlags, val pending: OptionalBoolean = OptionalBoolean.Missing, val avatar: Optional<String?> = Optional.Missing(), val communicationDisabledUntil: Optional<Instant?> = Optional.Missing())
Link copied to clipboard
data class DiscordInvite(val code: String, val guild: Optional<DiscordPartialGuild> = Optional.Missing(), val channel: DiscordChannel?, val inviter: Optional<DiscordUser> = Optional.Missing(), val targetType: Optional<InviteTargetType> = Optional.Missing(), val targetUser: Optional<DiscordUser> = Optional.Missing(), val targetApplication: Optional<DiscordPartialApplication> = Optional.Missing(), val approximatePresenceCount: OptionalInt = OptionalInt.Missing, val approximateMemberCount: OptionalInt = OptionalInt.Missing, val expiresAt: Optional<Instant?> = Optional.Missing(), val stageInstance: Optional<DiscordStageInstance> = Optional.Missing(), val guildScheduledEvent: Optional<DiscordGuildScheduledEvent> = Optional.Missing()) : BaseDiscordInvite
Link copied to clipboard
data class DiscordInviteWithMetadata(val code: String, val guild: Optional<DiscordPartialGuild> = Optional.Missing(), val channel: DiscordChannel?, val inviter: Optional<DiscordUser> = Optional.Missing(), val targetType: Optional<InviteTargetType> = Optional.Missing(), val targetUser: Optional<DiscordUser> = Optional.Missing(), val targetApplication: Optional<DiscordPartialApplication> = Optional.Missing(), val approximatePresenceCount: OptionalInt = OptionalInt.Missing, val approximateMemberCount: OptionalInt = OptionalInt.Missing, val expiresAt: Optional<Instant?> = Optional.Missing(), val guildScheduledEvent: Optional<DiscordGuildScheduledEvent> = Optional.Missing(), val uses: Int, val maxUses: Int, val maxAge: DurationInSeconds, val temporary: Boolean, val createdAt: Instant) : BaseDiscordInvite
Link copied to clipboard
data class DiscordMentionedChannel(val id: Snowflake, val guildId: Snowflake, val type: ChannelType, val name: String)

A representation of a Discord Channel Mention structure.

Link copied to clipboard
data class DiscordMessage(val id: Snowflake, val channelId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val author: DiscordUser, val member: Optional<DiscordGuildMember> = Optional.Missing(), val content: String, val timestamp: Instant, val editedTimestamp: Instant?, val tts: Boolean, val mentionEveryone: Boolean, val mentions: List<DiscordOptionallyMemberUser>, val mentionRoles: List<Snowflake>, val mentionedChannels: Optional<List<DiscordMentionedChannel>> = Optional.Missing(), val attachments: List<DiscordAttachment>, val embeds: List<DiscordEmbed>, val reactions: Optional<List<Reaction>> = Optional.Missing(), val nonce: Optional<@Serializable(with = LongOrStringSerializer::class) String> = Optional.Missing(), val pinned: Boolean, val webhookId: OptionalSnowflake = OptionalSnowflake.Missing, val type: MessageType, val activity: Optional<MessageActivity> = Optional.Missing(), val application: Optional<MessageApplication> = Optional.Missing(), val applicationId: OptionalSnowflake = OptionalSnowflake.Missing, val messageReference: Optional<DiscordMessageReference> = Optional.Missing(), val flags: Optional<MessageFlags> = Optional.Missing(), val stickers: Optional<List<DiscordStickerItem>> = Optional.Missing(), val referencedMessage: Optional<DiscordMessage?> = Optional.Missing(), val roleSubscriptionData: Optional<RoleSubscription> = Optional.Missing(), val components: Optional<List<DiscordComponent>> = Optional.Missing(), val interaction: Optional<DiscordMessageInteraction> = Optional.Missing(), val thread: Optional<DiscordChannel> = Optional.Missing(), val position: OptionalInt = OptionalInt.Missing)
Link copied to clipboard
data class DiscordMessageInteraction(val id: Snowflake, val type: InteractionType, val name: String, val user: DiscordUser)
Link copied to clipboard
data class DiscordMessageReference(val id: OptionalSnowflake = OptionalSnowflake.Missing, val channelId: OptionalSnowflake = OptionalSnowflake.Missing, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val failIfNotExists: OptionalBoolean = OptionalBoolean.Missing)
Link copied to clipboard
data class DiscordMessageSticker(val id: Snowflake, val packId: OptionalSnowflake = OptionalSnowflake.Missing, val name: String, val description: String?, val tags: Optional<String> = Optional.Missing(), val formatType: MessageStickerType, val available: OptionalBoolean = OptionalBoolean.Missing, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val user: Optional<DiscordUser> = Optional.Missing(), val sortValue: OptionalInt = OptionalInt.Missing)
Link copied to clipboard
data class DiscordModal(val title: String, val customId: String, val components: List<DiscordComponent>)
Link copied to clipboard
data class DiscordOnboardingPrompt(val id: Snowflake, val type: OnboardingPromptType, val options: List<DiscordOnboardingPromptOption>, val title: String, val singleSelect: Boolean, val required: Boolean, val inOnboarding: Boolean)
Link copied to clipboard
data class DiscordOnboardingPromptOption(val id: Snowflake, val channelIds: List<Snowflake>, val roleIds: List<Snowflake>, val emoji: DiscordEmoji, val title: String, val description: String?)
Link copied to clipboard
data class DiscordOptionallyMemberUser(val id: Snowflake, val username: String, val discriminator: Optional<String> = Optional.Missing(), val globalName: Optional<String?> = Optional.Missing(), val avatar: String?, val bot: OptionalBoolean = OptionalBoolean.Missing, val system: OptionalBoolean = OptionalBoolean.Missing, val mfaEnabled: OptionalBoolean = OptionalBoolean.Missing, val locale: Optional<String> = Optional.Missing(), val verified: OptionalBoolean = OptionalBoolean.Missing, val email: Optional<String?> = Optional.Missing(), val flags: Optional<UserFlags> = Optional.Missing(), val premiumType: Optional<UserPremium> = Optional.Missing(), val publicFlags: Optional<UserFlags> = Optional.Missing(), val member: Optional<DiscordGuildMember> = Optional.Missing())

A representation of the Discord User structure. This instance also contains a member.

Link copied to clipboard
data class DiscordPartialApplication(val id: Snowflake, val name: String, val icon: String?, val description: String, val rpcOrigins: Optional<List<String>> = Optional.Missing(), val termsOfServiceUrl: Optional<String> = Optional.Missing(), val privacyPolicyUrl: Optional<String> = Optional.Missing(), val owner: Optional<DiscordUser> = Optional.Missing(), val verifyKey: String, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val primarySkuId: OptionalSnowflake = OptionalSnowflake.Missing, val slug: Optional<String> = Optional.Missing(), val coverImage: Optional<String> = Optional.Missing(), val flags: Optional<ApplicationFlags> = Optional.Missing(), val tags: Optional<List<String>> = Optional.Missing(), val installParams: Optional<InstallParams> = Optional.Missing(), val customInstallUrl: Optional<String> = Optional.Missing(), val roleConnectionsVerificationUrl: Optional<String?> = Optional.Missing()) : BaseDiscordApplication

A representation of the partial Application Structure sent in invite create events.

Link copied to clipboard
data class DiscordPartialEmoji(val id: Snowflake? = null, val name: String? = null, val animated: OptionalBoolean = OptionalBoolean.Missing)

A partial representation of a Discord Emoji structure.

Link copied to clipboard
data class DiscordPartialGuild(val id: Snowflake, val name: String, val icon: String?, val owner: OptionalBoolean = OptionalBoolean.Missing, val permissions: Optional<Permissions> = Optional.Missing(), val features: List<GuildFeature>, val welcomeScreen: Optional<DiscordWelcomeScreen> = Optional.Missing(), val vanityUrlCode: Optional<String?> = Optional.Missing(), val description: Optional<String?> = Optional.Missing(), val banner: Optional<String?> = Optional.Missing(), val splash: Optional<String?> = Optional.Missing(), val nsfwLevel: Optional<NsfwLevel> = Optional.Missing(), val verificationLevel: Optional<VerificationLevel> = Optional.Missing(), val stageInstances: Optional<List<DiscordStageInstance>> = Optional.Missing(), val stickers: Optional<List<DiscordMessageSticker>> = Optional.Missing(), val guildScheduledEvents: Optional<List<DiscordGuildScheduledEvent>> = Optional.Missing(), val approximateMemberCount: OptionalInt = OptionalInt.Missing, val approximatePresenceCount: OptionalInt = OptionalInt.Missing, val premiumProgressBarEnabled: OptionalBoolean = OptionalBoolean.Missing)

A partial representation of a Discord Guild structure

Link copied to clipboard
data class DiscordPartialIntegration(val id: Snowflake, val name: String, val type: String, val account: DiscordIntegrationsAccount)
Link copied to clipboard
data class DiscordPartialInvite(val code: String?, val uses: Int)
Link copied to clipboard
data class DiscordPartialMessage(val id: Snowflake, val channelId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val author: Optional<DiscordUser> = Optional.Missing(), val member: Optional<DiscordGuildMember> = Optional.Missing(), val content: Optional<String> = Optional.Missing(), val timestamp: Optional<Instant> = Optional.Missing(), val editedTimestamp: Optional<Instant?> = Optional.Missing(), val tts: OptionalBoolean = OptionalBoolean.Missing, val mentionEveryone: OptionalBoolean = OptionalBoolean.Missing, val mentions: Optional<List<DiscordOptionallyMemberUser>> = Optional.Missing(), val mentionRoles: Optional<List<Snowflake>> = Optional.Missing(), val mentionedChannels: Optional<List<DiscordMentionedChannel>> = Optional.Missing(), val attachments: Optional<List<DiscordAttachment>> = Optional.Missing(), val embeds: Optional<List<DiscordEmbed>> = Optional.Missing(), val reactions: Optional<List<Reaction>> = Optional.Missing(), val nonce: Optional<String> = Optional.Missing(), val pinned: OptionalBoolean = OptionalBoolean.Missing, val webhookId: OptionalSnowflake = OptionalSnowflake.Missing, val type: Optional<MessageType> = Optional.Missing(), val activity: Optional<MessageActivity> = Optional.Missing(), val application: Optional<MessageApplication> = Optional.Missing(), val messageReference: Optional<DiscordMessageReference> = Optional.Missing(), val flags: Optional<MessageFlags> = Optional.Missing(), val stickers: Optional<List<DiscordStickerItem>> = Optional.Missing(), val referencedMessage: Optional<DiscordMessage?> = Optional.Missing(), val interaction: Optional<DiscordMessageInteraction> = Optional.Missing(), val position: OptionalInt = OptionalInt.Missing)
Link copied to clipboard
data class DiscordPartialRole(val id: Snowflake, val name: Optional<String> = Optional.Missing(), val color: OptionalInt = OptionalInt.Missing, val hoist: OptionalBoolean = OptionalBoolean.Missing, val icon: Optional<String?> = Optional.Missing(), val unicodeEmoji: Optional<String?> = Optional.Missing(), val position: OptionalInt = OptionalInt.Missing, val permissions: Optional<Permissions> = Optional.Missing(), val managed: OptionalBoolean = OptionalBoolean.Missing, val mentionable: OptionalBoolean = OptionalBoolean.Missing, val tags: Optional<DiscordRoleTags> = Optional.Missing())
Link copied to clipboard
data class DiscordPinsUpdateData(val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val channelId: Snowflake, val lastPinTimestamp: Optional<Instant?> = Optional.Missing())
Link copied to clipboard
data class DiscordPresenceUpdate(val user: DiscordPresenceUser, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val status: PresenceStatus, val activities: List<DiscordActivity>, val clientStatus: DiscordClientStatus)
Link copied to clipboard
Link copied to clipboard
data class DiscordRemovedGuildMember(val guildId: Snowflake, val user: DiscordUser)
Link copied to clipboard
data class DiscordRole(val id: Snowflake, val name: String, val color: Int, val hoist: Boolean, val icon: Optional<String?> = Optional.Missing(), val unicodeEmoji: Optional<String?> = Optional.Missing(), val position: Int, val permissions: Permissions, val managed: Boolean, val mentionable: Boolean, val tags: Optional<DiscordRoleTags> = Optional.Missing(), val flags: RoleFlags)
Link copied to clipboard
data class DiscordRoleTags(val botId: OptionalSnowflake = OptionalSnowflake.Missing, val integrationId: OptionalSnowflake = OptionalSnowflake.Missing, val premiumSubscriber: Optional<Nothing?> = Optional.Missing(), val subscriptionListingId: OptionalSnowflake = OptionalSnowflake.Missing, val availableForPurchase: Optional<Nothing?> = Optional.Missing(), val guildConnections: Optional<Nothing?> = Optional.Missing())
Link copied to clipboard
Link copied to clipboard
data class DiscordSelectOption(val label: String, val value: String, val description: Optional<String> = Optional.Missing(), val emoji: Optional<DiscordPartialEmoji> = Optional.Missing(), val default: OptionalBoolean = OptionalBoolean.Missing)
Link copied to clipboard
data class DiscordShard(val index: Int, val count: Int)

An instance of a Discord shard.

Link copied to clipboard
data class DiscordSku(val id: Snowflake, val type: SkuType, val applicationId: Snowflake, val name: String, val slug: String, val flags: SkuFlags)

Represents a Discord SKU.

Link copied to clipboard
data class DiscordStageInstance(val id: Snowflake, val guildId: Snowflake, val channelId: Snowflake, val topic: String, val privacyLevel: StageInstancePrivacyLevel, val discoverableDisabled: Boolean, val guildScheduledEventId: Snowflake?)

A Stage Instance holds information about a live stage.

Link copied to clipboard
data class DiscordStickerItem(val id: Snowflake, val name: String, val formatType: MessageStickerType)
Link copied to clipboard
data class DiscordStickerPack(val id: Snowflake, val stickers: List<DiscordMessageSticker>, val name: String, val skuId: Snowflake, val coverStickerId: OptionalSnowflake = OptionalSnowflake.Missing, val description: String, val bannerAssetId: Snowflake)
Link copied to clipboard
data class DiscordSubscription(val id: Snowflake, val userId: Snowflake, val skuIds: List<Snowflake>, val entitlementIds: List<Snowflake>, val currentPeriodStart: Instant, val currentPeriodEnd: Instant, val status: SubscriptionStatus, val canceledAt: Instant?, val country: Optional<String> = Optional.Missing())
Link copied to clipboard
data class DiscordTeam(val icon: String?, val id: Snowflake, val members: List<DiscordTeamMember>, val name: String, val ownerUserId: Snowflake)

The raw developer team data gotten from the API.

Link copied to clipboard
data class DiscordTeamMember(val membershipState: TeamMembershipState, val teamId: Snowflake, val user: DiscordUser, val role: TeamMemberRole)

The raw developer team member data gotten from the API.

Link copied to clipboard
data class DiscordTemplate(val code: String, val name: String, val description: String?, val usageCount: Int, val creatorId: Snowflake, val creator: DiscordUser, val createdAt: Instant, val updatedAt: Instant, val sourceGuildId: Snowflake, val serializedSourceGuild: DiscordPartialGuild, val isDirty: Boolean?)
Link copied to clipboard
data class DiscordTextInputComponent(val type: ComponentType, val style: Optional<TextInputStyle> = Optional.Missing(), val label: Optional<String> = Optional.Missing(), val emoji: Optional<DiscordPartialEmoji> = Optional.Missing(), val customId: Optional<String> = Optional.Missing(), val url: Optional<String> = Optional.Missing(), val disabled: OptionalBoolean = OptionalBoolean.Missing, val components: Optional<List<DiscordComponent>> = Optional.Missing(), val options: Optional<List<DiscordSelectOption>> = Optional.Missing(), val placeholder: Optional<String> = Optional.Missing(), val defaultValues: Optional<List<DiscordSelectDefaultValue>> = Optional.Missing(), val minValues: OptionalInt = OptionalInt.Missing, val maxValues: OptionalInt = OptionalInt.Missing, val minLength: OptionalInt = OptionalInt.Missing, val maxLength: OptionalInt = OptionalInt.Missing, val required: OptionalBoolean = OptionalBoolean.Missing, val value: Optional<String> = Optional.Missing(), val channelTypes: Optional<List<ChannelType>> = Optional.Missing()) : DiscordComponent
Link copied to clipboard
data class DiscordThreadMember(val id: OptionalSnowflake = OptionalSnowflake.Missing, val userId: OptionalSnowflake = OptionalSnowflake.Missing, val joinTimestamp: Instant, val flags: Int)
Link copied to clipboard
data class DiscordThreadMetadata(val archived: Boolean, val archiveTimestamp: Instant, val autoArchiveDuration: ArchiveDuration, val locked: OptionalBoolean = OptionalBoolean.Missing, val invitable: OptionalBoolean = OptionalBoolean.Missing, val createTimestamp: Optional<Instant?> = Optional.Missing())
Link copied to clipboard
data class DiscordTyping(val channelId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val userId: Snowflake, val timestamp: InstantInEpochSeconds, val member: Optional<DiscordGuildMember> = Optional.Missing())
Link copied to clipboard
data class DiscordUnavailableGuild(val id: Snowflake, val unavailable: OptionalBoolean = OptionalBoolean.Missing)

A partial representation of a DiscordGuild that may be unavailable.

Link copied to clipboard
data class DiscordUpdatedEmojis(val guildId: Snowflake, val emojis: List<DiscordEmoji>)
Link copied to clipboard
data class DiscordUpdatedGuildMember(val guildId: Snowflake, val roles: List<Snowflake>, val user: DiscordUser, val nick: Optional<String?> = Optional.Missing(), val joinedAt: Instant?, val premiumSince: Optional<Instant?> = Optional.Missing(), val flags: GuildMemberFlags, val pending: OptionalBoolean = OptionalBoolean.Missing, val avatar: Optional<String?> = Optional.Missing(), val communicationDisabledUntil: Optional<Instant?> = Optional.Missing())
Link copied to clipboard
data class DiscordUser(val id: Snowflake, val username: String, val discriminator: Optional<String> = Optional.Missing(), val globalName: Optional<String?> = Optional.Missing(), val avatar: String?, val bot: OptionalBoolean = OptionalBoolean.Missing, val system: OptionalBoolean = OptionalBoolean.Missing, val mfaEnabled: OptionalBoolean = OptionalBoolean.Missing, val locale: Optional<String> = Optional.Missing(), val verified: OptionalBoolean = OptionalBoolean.Missing, val email: Optional<String?> = Optional.Missing(), val flags: Optional<UserFlags> = Optional.Missing(), val premiumType: Optional<UserPremium> = Optional.Missing(), val publicFlags: Optional<UserFlags> = Optional.Missing(), val banner: String? = null, val accentColor: Int? = null, val avatarDecoration: Optional<String?> = Optional.Missing())

A representation of the Discord User structure.

Link copied to clipboard
data class DiscordVoiceRegion(val id: String, val name: String, val optimal: Boolean, val deprecated: Boolean, val custom: Boolean)

A representation of the Discord Voice Region structure.

Link copied to clipboard
data class DiscordVoiceServerUpdateData(val token: String, val guildId: Snowflake, val endpoint: String?)
Link copied to clipboard
data class DiscordVoiceState(val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val channelId: Snowflake?, val userId: Snowflake, val member: Optional<DiscordGuildMember> = Optional.Missing(), val sessionId: String, val deaf: Boolean, val mute: Boolean, val selfDeaf: Boolean, val selfMute: Boolean, val selfVideo: Boolean, val selfStream: OptionalBoolean = OptionalBoolean.Missing, val suppress: Boolean, val requestToSpeakTimestamp: Instant?)

A representation of the Discord Voice State structure. Used to represent a user's voice connection status.

Link copied to clipboard
data class DiscordWebhook(val id: Snowflake, val type: WebhookType, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val channelId: Snowflake, val user: Optional<DiscordUser> = Optional.Missing(), val name: String?, val avatar: String?, val token: Optional<String> = Optional.Missing(), val applicationId: Snowflake?)

A representation of the Discord Webhook structure.

Link copied to clipboard
data class DiscordWebhooksUpdateData(val guildId: Snowflake, val channelId: Snowflake)
Link copied to clipboard
data class DiscordWelcomeScreen(val description: String?, val welcomeChannels: List<DiscordWelcomeScreenChannel>)
Link copied to clipboard
data class DiscordWelcomeScreenChannel(val channelId: Snowflake, val description: String, val emojiId: Snowflake?, val emojiName: String?)
Link copied to clipboard
Link copied to clipboard
data class ForumTag(val id: Snowflake, val name: String, val moderated: Boolean, val emojiId: Snowflake?, val emojiName: String?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class GuildScheduledEventEntityMetadata(val location: Optional<String> = Optional.Missing())

Entity metadata for DiscordGuildScheduledEvent.

Link copied to clipboard
data class InstallParams(val scopes: List<String>, val permissions: Permissions)
Link copied to clipboard
data class IntegrationApplication(val id: Snowflake, val name: String, val icon: String?, val description: String, val bot: Optional<DiscordUser> = Optional.Missing())
Link copied to clipboard
data class InteractionCallbackData(val id: OptionalSnowflake = OptionalSnowflake.Missing, val type: Optional<ApplicationCommandType> = Optional.Missing(), val targetId: OptionalSnowflake = OptionalSnowflake.Missing, val name: Optional<String> = Optional.Missing(), val resolved: Optional<ResolvedObjects> = Optional.Missing(), val options: Optional<List<Option>> = Optional.Missing(), val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val customId: Optional<String> = Optional.Missing(), val componentType: Optional<ComponentType> = Optional.Missing(), val values: Optional<List<String>> = Optional.Missing(), val components: Optional<List<DiscordComponent>> = Optional.Missing())
Link copied to clipboard
data class MessageActivity(val type: MessageActivityType, val partyId: Optional<String> = Optional.Missing())
Link copied to clipboard
data class MessageApplication(val id: Snowflake, val coverImage: Optional<String> = Optional.Missing(), val description: String, val icon: String? = null, val name: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class MessageReactionAddData(val userId: Snowflake, val channelId: Snowflake, val messageId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val member: Optional<DiscordGuildMember> = Optional.Missing(), val emoji: DiscordPartialEmoji, val messageAuthorId: OptionalSnowflake = OptionalSnowflake.Missing)
Link copied to clipboard
data class MessageReactionRemoveData(val userId: Snowflake, val channelId: Snowflake, val messageId: Snowflake, val guildId: OptionalSnowflake = OptionalSnowflake.Missing, val emoji: DiscordPartialEmoji)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Defines the criteria used to satisfy Onboarding constraints that are required for enabling.

Link copied to clipboard
Link copied to clipboard
data class Overwrite(val id: Snowflake, val type: OverwriteType, val allow: Permissions, val deny: Permissions)
Link copied to clipboard
Link copied to clipboard

A collection of multiple Permissions.

Link copied to clipboard
data class Reaction(val count: Int, val me: Boolean, val emoji: DiscordEmoji)
Link copied to clipboard
data class ResolvedObjects(val members: Optional<Map<Snowflake, DiscordInteractionGuildMember>> = Optional.Missing(), val users: Optional<Map<Snowflake, DiscordUser>> = Optional.Missing(), val roles: Optional<Map<Snowflake, DiscordRole>> = Optional.Missing(), val channels: Optional<Map<Snowflake, DiscordChannel>> = Optional.Missing(), val messages: Optional<Map<Snowflake, DiscordMessage>> = Optional.Missing(), val attachments: Optional<Map<Snowflake, DiscordAttachment>> = Optional.Missing())
Link copied to clipboard
Link copied to clipboard

A collection of multiple RoleFlags.

Link copied to clipboard
data class RoleSubscription(val subscriptionId: Snowflake, val tierName: String, val totalMonthsSubscribed: Int, val isRenewal: Boolean)
Link copied to clipboard
Link copied to clipboard

A collection of multiple SkuFlags.

Link copied to clipboard
Link copied to clipboard

A unique identifier for entities used by Discord.

Link copied to clipboard
data class SubCommand(val name: String, val options: Optional<List<CommandArgument<Any?>>> = Optional.Missing()) : Option
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A collection of multiple UserFlags.

Link copied to clipboard

Premium types denote the level of premium a user has.

Properties

Link copied to clipboard

All known Permissions (as contained in Permission.entries) combined into a single Permissions instance.

Functions

Link copied to clipboard
@JvmName(name = "ActivityFlags0")
fun ActivityFlags(flags: Iterable<ActivityFlags>): ActivityFlags

Returns an instance of ActivityFlags that has all bits set that are set in any element of flags.

inline fun ActivityFlags(builder: ActivityFlags.Builder.() -> Unit = {}): ActivityFlags

Returns an instance of ActivityFlags built with ActivityFlags.Builder.

Link copied to clipboard
@JvmName(name = "ApplicationFlags0")
fun ApplicationFlags(flags: Iterable<ApplicationFlags>): ApplicationFlags

Returns an instance of ApplicationFlags that has all bits set that are set in any element of flags.

Returns an instance of ApplicationFlags built with ApplicationFlags.Builder.

Link copied to clipboard
@JvmName(name = "AttachmentFlags0")
fun AttachmentFlags(flags: Iterable<AttachmentFlags>): AttachmentFlags

Returns an instance of AttachmentFlags that has all bits set that are set in any element of flags.

Returns an instance of AttachmentFlags built with AttachmentFlags.Builder.

Link copied to clipboard
@JvmName(name = "ChannelFlags0")
fun ChannelFlags(flags: Iterable<ChannelFlags>): ChannelFlags

Returns an instance of ChannelFlags that has all bits set that are set in any element of flags.

inline fun ChannelFlags(builder: ChannelFlags.Builder.() -> Unit = {}): ChannelFlags

Returns an instance of ChannelFlags built with ChannelFlags.Builder.

Link copied to clipboard
@JvmName(name = "GuildMemberFlags0")
fun GuildMemberFlags(flags: Iterable<GuildMemberFlags>): GuildMemberFlags

Returns an instance of GuildMemberFlags that has all bits set that are set in any element of flags.

Returns an instance of GuildMemberFlags built with GuildMemberFlags.Builder.

Link copied to clipboard
@JvmName(name = "MessageFlags0")
fun MessageFlags(flags: Iterable<MessageFlags>): MessageFlags

Returns an instance of MessageFlags that has all bits set that are set in any element of flags.

inline fun MessageFlags(builder: MessageFlags.Builder.() -> Unit = {}): MessageFlags

Returns an instance of MessageFlags built with MessageFlags.Builder.

Link copied to clipboard
fun Permissions(vararg flags: Permission): Permissions
fun Permissions(vararg flags: Permissions): Permissions
@JvmName(name = "Permissions0")
fun Permissions(flags: Iterable<Permissions>): Permissions

Returns an instance of Permissions that has all bits set that are set in any element of flags.

inline fun Permissions(builder: Permissions.Builder.() -> Unit = {}): Permissions

Returns an instance of Permissions built with Permissions.Builder.

Link copied to clipboard
fun RoleFlags(vararg flags: RoleFlag): RoleFlags
fun RoleFlags(vararg flags: RoleFlags): RoleFlags
@JvmName(name = "RoleFlags0")
fun RoleFlags(flags: Iterable<RoleFlags>): RoleFlags

Returns an instance of RoleFlags that has all bits set that are set in any element of flags.

inline fun RoleFlags(builder: RoleFlags.Builder.() -> Unit = {}): RoleFlags

Returns an instance of RoleFlags built with RoleFlags.Builder.

Link copied to clipboard
fun SkuFlags(vararg flags: SkuFlag): SkuFlags
fun SkuFlags(vararg flags: SkuFlags): SkuFlags
@JvmName(name = "SkuFlags0")
fun SkuFlags(flags: Iterable<SkuFlags>): SkuFlags

Returns an instance of SkuFlags that has all bits set that are set in any element of flags.

inline fun SkuFlags(builder: SkuFlags.Builder.() -> Unit = {}): SkuFlags

Returns an instance of SkuFlags built with SkuFlags.Builder.

Link copied to clipboard
fun Snowflake(value: Long): Snowflake

Creates a Snowflake from a given Long value.

Link copied to clipboard
@JvmName(name = "SystemChannelFlags0")
fun SystemChannelFlags(flags: Iterable<SystemChannelFlags>): SystemChannelFlags

Returns an instance of SystemChannelFlags that has all bits set that are set in any element of flags.

Returns an instance of SystemChannelFlags built with SystemChannelFlags.Builder.

Link copied to clipboard
fun UserFlags(vararg flags: UserFlag): UserFlags
fun UserFlags(vararg flags: UserFlags): UserFlags
@JvmName(name = "UserFlags0")
fun UserFlags(flags: Iterable<UserFlags>): UserFlags

Returns an instance of UserFlags that has all bits set that are set in any element of flags.

inline fun UserFlags(builder: UserFlags.Builder.() -> Unit = {}): UserFlags

Returns an instance of UserFlags built with UserFlags.Builder.