1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-10-04 00:29:04 +00:00

discord: Add MessageInteraction type

This commit is contained in:
twoscott 2022-05-24 15:45:12 +01:00 committed by diamondburned
parent e09abfdbcb
commit 8cd802e09d

View file

@ -383,6 +383,24 @@ type MessageReference struct {
//
// https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object-message-interaction-structure
type MessageInteraction struct {
// ID is the id of the originating interaction.
ID InteractionID `json:"id"`
// Type is the type of the originating interaction.
Type InteractionDataType `json:"type"`
// Name is the name of the application command that was invoked with the
// originating interaction.
Name string `json:"name"`
// User is the user who invoked the originating interaction.
User User `json:"user"`
// Member is the member who invoked the originating interaction in
// the guild.
Member *Member `json:"member,omitempty"`
}
//
// https://discord.com/developers/docs/resources/channel#attachment-object
type Attachment struct {
// ID is the attachment id.