DiscordInteraction

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())(source)

Constructors

Link copied to clipboard
constructor(id: Snowflake, applicationId: Snowflake, type: InteractionType, data: InteractionCallbackData, guildId: OptionalSnowflake = OptionalSnowflake.Missing, channel: Optional<DiscordChannel> = Optional.Missing(), channelId: OptionalSnowflake = OptionalSnowflake.Missing, member: Optional<DiscordInteractionGuildMember> = Optional.Missing(), user: Optional<DiscordUser> = Optional.Missing(), token: String, version: Int, message: Optional<DiscordMessage> = Optional.Missing(), appPermissions: Optional<Permissions> = Optional.Missing(), locale: Optional<Locale> = Optional.Missing(), guildLocale: Optional<Locale> = Optional.Missing(), entitlements: Optional<List<DiscordEntitlement>> = Optional.Missing())

Properties

Link copied to clipboard
@SerialName(value = "application_id")
val applicationId: Snowflake
Link copied to clipboard
@SerialName(value = "app_permissions")
val appPermissions: Optional<Permissions>
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "channel_id")
val channelId: OptionalSnowflake
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "guild_id")
val guildId: OptionalSnowflake
Link copied to clipboard
@SerialName(value = "guild_locale")
val guildLocale: Optional<Locale>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard