Enum twilight_model::gateway::event::DispatchEvent [−][src]
pub enum DispatchEvent {
Show variants
BanAdd(BanAdd),
BanRemove(BanRemove),
ChannelCreate(ChannelCreate),
ChannelDelete(ChannelDelete),
ChannelPinsUpdate(ChannelPinsUpdate),
ChannelUpdate(ChannelUpdate),
GiftCodeUpdate,
GuildCreate(Box<GuildCreate>),
GuildDelete(Box<GuildDelete>),
GuildEmojisUpdate(GuildEmojisUpdate),
GuildIntegrationsUpdate(GuildIntegrationsUpdate),
GuildUpdate(Box<GuildUpdate>),
IntegrationCreate(Box<IntegrationCreate>),
IntegrationDelete(IntegrationDelete),
IntegrationUpdate(Box<IntegrationUpdate>),
InteractionCreate(Box<InteractionCreate>),
InviteCreate(Box<InviteCreate>),
InviteDelete(InviteDelete),
MemberAdd(Box<MemberAdd>),
MemberRemove(MemberRemove),
MemberUpdate(Box<MemberUpdate>),
MemberChunk(MemberChunk),
MessageCreate(Box<MessageCreate>),
MessageDelete(MessageDelete),
MessageDeleteBulk(MessageDeleteBulk),
MessageUpdate(Box<MessageUpdate>),
PresenceUpdate(Box<PresenceUpdate>),
PresencesReplace,
ReactionAdd(Box<ReactionAdd>),
ReactionRemove(Box<ReactionRemove>),
ReactionRemoveAll(ReactionRemoveAll),
ReactionRemoveEmoji(ReactionRemoveEmoji),
Ready(Box<Ready>),
Resumed,
RoleCreate(RoleCreate),
RoleDelete(RoleDelete),
RoleUpdate(RoleUpdate),
StageInstanceCreate(StageInstanceCreate),
StageInstanceDelete(StageInstanceDelete),
StageInstanceUpdate(StageInstanceUpdate),
TypingStart(Box<TypingStart>),
UnavailableGuild(UnavailableGuild),
UserUpdate(UserUpdate),
VoiceServerUpdate(VoiceServerUpdate),
VoiceStateUpdate(Box<VoiceStateUpdate>),
WebhooksUpdate(WebhooksUpdate),
}Expand description
A dispatch event, containing information about a created guild, a member added, etc.
You can deserialize into a DispatchEvent via
DispatchEventWithTypeDeserializer.
Variants
BanAdd(BanAdd)BanRemove(BanRemove)ChannelCreate(ChannelCreate)ChannelDelete(ChannelDelete)ChannelPinsUpdate(ChannelPinsUpdate)ChannelUpdate(ChannelUpdate)GuildCreate(Box<GuildCreate>)GuildDelete(Box<GuildDelete>)GuildEmojisUpdate(GuildEmojisUpdate)GuildIntegrationsUpdate(GuildIntegrationsUpdate)GuildUpdate(Box<GuildUpdate>)IntegrationCreate(Box<IntegrationCreate>)IntegrationDelete(IntegrationDelete)IntegrationUpdate(Box<IntegrationUpdate>)InteractionCreate(Box<InteractionCreate>)InviteCreate(Box<InviteCreate>)InviteDelete(InviteDelete)MemberRemove(MemberRemove)MemberUpdate(Box<MemberUpdate>)MemberChunk(MemberChunk)MessageCreate(Box<MessageCreate>)MessageDelete(MessageDelete)MessageDeleteBulk(MessageDeleteBulk)MessageUpdate(Box<MessageUpdate>)PresenceUpdate(Box<PresenceUpdate>)ReactionAdd(Box<ReactionAdd>)ReactionRemove(Box<ReactionRemove>)ReactionRemoveAll(ReactionRemoveAll)ReactionRemoveEmoji(ReactionRemoveEmoji)RoleCreate(RoleCreate)RoleDelete(RoleDelete)RoleUpdate(RoleUpdate)StageInstanceCreate(StageInstanceCreate)StageInstanceDelete(StageInstanceDelete)StageInstanceUpdate(StageInstanceUpdate)TypingStart(Box<TypingStart>)UserUpdate(UserUpdate)VoiceServerUpdate(VoiceServerUpdate)VoiceStateUpdate(Box<VoiceStateUpdate>)WebhooksUpdate(WebhooksUpdate)Implementations
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for DispatchEventimpl Send for DispatchEventimpl Sync for DispatchEventimpl Unpin for DispatchEventimpl UnwindSafe for DispatchEventBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more