Module dscord.gateway.events

Implementations of Discord events.

Classes

Name Description
ChannelCreate Sent when a channel is created.
ChannelDelete Sent when a channel is deleted.
ChannelPinsUpdate Sent when a channels pins are updated.
ChannelUpdate Sent when a channel is updated.
GuildBanAdd Sent when a guild ban is added.
GuildBanRemove Sent when a guild ban is removed.
GuildCreate Sent when a guild is created (often on startup).
GuildDelete Sent when a guild is deleted (or becomes unavailable)
GuildEmojisUpdate Sent when a guilds emojis are updated.
GuildIntegrationsUpdate Sent when a guilds integrations are updated.
GuildMemberAdd Sent when a member is added to a guild.
GuildMemberRemove Sent when a member is removed from a guild.
GuildMembersChunk Sent in response to RequestGuildMembers.
GuildMemberUpdate Sent when a guild member is updated.
GuildRoleCreate Sent when a guild role is created.
GuildRoleDelete Sent when a guild role is deleted.
GuildRoleUpdate Sent when a guild role is updated.
GuildUpdate Sent when a guild is updated
MessageCreate Sent when a message is created.
MessageDelete Sent when a message is deleted.
MessageDeleteBulk Sent when a bulk set of messages gets deleted from a channel.
MessageUpdate Sent when a message is updated.
PresenceUpdate Sent when a users presence is updated.
Ready Sent when we initially connect, contains base state and connection information.
Resumed Sent when we've completed a reconnect/resume sequence.
TypingStart Sent when a user starts typing.
UserSettingsUpdate Sent when this users settings are updated.
UserUpdate Sent when this user is updated.
VoiceServerUpdate Sent when a voice server is updated.
VoiceStateUpdate Sent when a voice state is updated.

Templates

Name Description
Event Base template for events from discord. Handles basic initilization, and some deferred-function code.

Aliases

Name Type Description
EventDeferredFunc void delegate() A wrapper type for delegates that can be attached to an event, and run after all listeners are executed. This can be used to ensure an event has fully passed through all listeners, or to avoid having function/stack pointers within plugin code (which allows for dynamically reloading the plugin).