MessageInteraction

@Serializable
data class MessageInteraction(val id: String, val type: InteractionType, val commandName: String, val invokingUser: User, val guildMember: GuildMember? = null)(source)

The interaction that triggered this message, if the original interaction does not have a message of its own So MessageComponent interactions don't have this property, since they require an existing message

https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object

Constructors

Link copied to clipboard
constructor(id: String, type: InteractionType, commandName: String, invokingUser: User, guildMember: GuildMember? = null)

Properties

Link copied to clipboard
@SerialName(value = "name")
val commandName: String
Link copied to clipboard
@SerialName(value = "member")
val guildMember: GuildMember? = null
Link copied to clipboard
@SerialName(value = "id")
val id: String
Link copied to clipboard
@SerialName(value = "user")
val invokingUser: User
Link copied to clipboard
@SerialName(value = "type")
val type: InteractionType