Enum serenity::model::event::Event [] [src]

pub enum Event {
    CallCreate(CallCreateEvent),
    CallDelete(CallDeleteEvent),
    CallUpdate(CallUpdateEvent),
    ChannelCreate(ChannelCreateEvent),
    ChannelDelete(ChannelDeleteEvent),
    ChannelPinsAck(ChannelPinsAckEvent),
    ChannelPinsUpdate(ChannelPinsUpdateEvent),
    ChannelRecipientAdd(ChannelRecipientAddEvent),
    ChannelRecipientRemove(ChannelRecipientRemoveEvent),
    ChannelUpdate(ChannelUpdateEvent),
    FriendSuggestionCreate(FriendSuggestionCreateEvent),
    FriendSuggestionDelete(FriendSuggestionDeleteEvent),
    GuildBanAdd(GuildBanAddEvent),
    GuildBanRemove(GuildBanRemoveEvent),
    GuildCreate(GuildCreateEvent),
    GuildDelete(GuildDeleteEvent),
    GuildEmojisUpdate(GuildEmojisUpdateEvent),
    GuildIntegrationsUpdate(GuildIntegrationsUpdateEvent),
    GuildMemberAdd(GuildMemberAddEvent),
    GuildMemberRemove(GuildMemberRemoveEvent),
    GuildMemberUpdate(GuildMemberUpdateEvent),
    GuildMembersChunk(GuildMembersChunkEvent),
    GuildRoleCreate(GuildRoleCreateEvent),
    GuildRoleDelete(GuildRoleDeleteEvent),
    GuildRoleUpdate(GuildRoleUpdateEvent),
    GuildSync(GuildSyncEvent),
    GuildUnavailable(GuildUnavailableEvent),
    GuildUpdate(GuildUpdateEvent),
    MessageAck(MessageAckEvent),
    MessageCreate(MessageCreateEvent),
    MessageDelete(MessageDeleteEvent),
    MessageDeleteBulk(MessageDeleteBulkEvent),
    MessageUpdate(MessageUpdateEvent),
    PresenceUpdate(PresenceUpdateEvent),
    PresencesReplace(PresencesReplaceEvent),
    ReactionAdd(ReactionAddEvent),
    ReactionRemove(ReactionRemoveEvent),
    ReactionRemoveAll(ReactionRemoveAllEvent),
    Ready(ReadyEvent),
    RelationshipAdd(RelationshipAddEvent),
    RelationshipRemove(RelationshipRemoveEvent),
    Resumed(ResumedEvent),
    TypingStart(TypingStartEvent),
    UserGuildSettingsUpdate(UserGuildSettingsUpdateEvent),
    UserNoteUpdate(UserNoteUpdateEvent),
    UserUpdate(UserUpdateEvent),
    UserSettingsUpdate(UserSettingsUpdateEvent),
    VoiceStateUpdate(VoiceStateUpdateEvent),
    VoiceServerUpdate(VoiceServerUpdateEvent),
    WebhookUpdate(WebhookUpdateEvent),
    Unknown(UnknownEvent),
}

Event received over a websocket connection

Variants

A new group call has been created

A group call has been deleted (the call ended)

A group call has been updated

A user has been added to a group

A user has been removed from a group

When a suggestion for a friend is created, due to a connection like [Skype].

When a suggestion for a friend is removed.

A member's roles have changed

When a guild is unavailable, such as due to a Discord server outage.

Another logged-in device acknowledged this message

A message has been edited, either by the user or the system

A member's presence state (or username or avatar) has changed

The precense list of the user's friends should be replaced entirely

A reaction was added to a message.

Fires the on_message_reaction_add event handler.

A reaction was removed to a message.

Fires the on_message_reaction_remove event handler.

A request was issued to remove all Reactions from a Message.

Fires the on_reaction_remove_all event handler.

The first event in a connection, containing the initial ready cache.

May also be received at a later time in the event of a reconnect.

The connection has successfully resumed after a disconnect.

A user is typing; considered to last 5 seconds

Update to the logged-in user's guild-specific notification settings

Update to a note that the logged-in user has set for another user.

Update to the logged-in user's information

Update to the logged-in user's preferences or client settings

A member's voice state has changed

Voice server information is available

A webhook for a channel was updated in a Guild.

An event type not covered by the above

Trait Implementations

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Event
[src]

Formats the value using the given formatter.