#[non_exhaustive]pub enum WebhookEventData {
Show 13 variants
ApplicationAuthorized(Box<ApplicationAuthorized>),
ApplicationDeauthorized(Box<ApplicationDeauthorized>),
EntitlementCreate(Box<Entitlement>),
EntitlementUpdate(Box<Entitlement>),
EntitlementDelete(Box<Entitlement>),
QuestUserEnrollment,
LobbyMessageCreate(Box<LobbyMessage>),
LobbyMessageUpdate(Box<LobbyMessage>),
LobbyMessageDelete(LobbyMessageDelete),
GameDirectMessageCreate(Box<GameDirectMessage>),
GameDirectMessageUpdate(Box<GameDirectMessage>),
GameDirectMessageDelete(Box<GameDirectMessage>),
Unknown(WebhookEventType),
}Expand description
The data of a WebhookEvent, by event type.
discord.js counterpart: APIWebhookEventBody (discord-api-types).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ApplicationAuthorized(Box<ApplicationAuthorized>)
APPLICATION_AUTHORIZED:
the app was added to a guild or a user account.
APPLICATION_DEAUTHORIZED:
a user deauthorized the app. For Social SDK apps this is the only signal outside the game
that the user’s account link was removed.
EntitlementCreate(Box<Entitlement>)
ENTITLEMENT_CREATE:
a user purchased or was granted one of the app’s SKUs.
EntitlementUpdate(Box<Entitlement>)
EntitlementDelete(Box<Entitlement>)
QuestUserEnrollment
QUEST_USER_ENROLLMENT:
a user was added to a Quest. Apps cannot receive it yet; it has no documented data.
LobbyMessageCreate(Box<LobbyMessage>)
LobbyMessageUpdate(Box<LobbyMessage>)
LobbyMessageDelete(LobbyMessageDelete)
GameDirectMessageCreate(Box<GameDirectMessage>)
GAME_DIRECT_MESSAGE_CREATE:
a direct message was sent while a participant had an active Social SDK session.
GameDirectMessageUpdate(Box<GameDirectMessage>)
GameDirectMessageDelete(Box<GameDirectMessage>)
Unknown(WebhookEventType)
An event type this version does not know; its data is not kept.
Implementations§
Source§impl WebhookEventData
impl WebhookEventData
Sourcepub fn kind(&self) -> WebhookEventType
pub fn kind(&self) -> WebhookEventType
Returns the event’s type.
discord.js counterpart: ApplicationWebhookEventType (discord-api-types).