Events
Note that Snowflake === UInt64. Unions with Nothing indicate that a field is nullable, whereas Unions with Missing indicate that a field is optional. More details here.
Discord.AbstractEvent — Type.An incoming event sent over the gateway. Also a catch-all event: Handlers defined on this type will execute on all events.
Discord.FallbackEvent — Type.A type for defining handlers on any events which would otherwise have no non-default handler. Handlers for this type must accept an AbstractEvent.
Discord.UnknownEvent — Type.An unknown event. When an event can't be parsed, due to an unknown type or any other error, it will appear as an UnknownEvent. The fields follow the schema defined here.
Channels
Discord.ChannelCreate — Type.Discord.ChannelUpdate — Type.Discord.ChannelDelete — Type.Discord.ChannelPinsUpdate — Type.Sent when a DiscordChannel's pins are updated.
Fields
channel_id :: Snowflake
last_pin_timestamp :: Nullable{DateTime}Guilds
Discord.GuildCreate — Type.Discord.GuildUpdate — Type.Discord.GuildDelete — Type.Discord.GuildBanAdd — Type.Discord.GuildBanRemove — Type.Discord.GuildEmojisUpdate — Type.Discord.GuildIntegrationsUpdate — Type.Discord.GuildMemberAdd — Type.Discord.GuildMemberRemove — Type.Discord.GuildMemberUpdate — Type.Discord.GuildMembersChunk — Type.Sent when the Client requests guild members with request_guild_members.
Fields
guild_id :: Snowflake
members :: Vector{Member}Discord.GuildRoleCreate — Type.Discord.GuildRoleUpdate — Type.Discord.GuildRoleDelete — Type.Messages
Discord.MessageCreate — Type.Discord.MessageUpdate — Type.Discord.MessageDelete — Type.Sent when a Message is deleted.
Fields
id :: Snowflake
channel_id :: Snowflake
guild_id :: Optional{Snowflake}Discord.MessageDeleteBulk — Type.Sent when multiple Messages are deleted in bulk.
Fields
ids :: Vector{Snowflake}
channel_id :: Snowflake
guild_id :: Optional{Snowflake}Discord.MessageReactionAdd — Type.Discord.MessageReactionRemove — Type.Discord.MessageReactionRemoveAll — Type.Presence
Discord.PresenceUpdate — Type.Discord.TypingStart — Type.Sent when a User begins typing.
Fields
channel_id :: Snowflake
guild_id :: Optional{Snowflake}
user_id :: Snowflake
timestamp :: DateTimeDiscord.UserUpdate — Type.Voice
Discord.VoiceStateUpdate — Type.Discord.VoiceServerUpdate — Type.Sent when a Guild's voice server is updated.
Fields
token :: String
guild_id :: Snowflake
endpoint :: StringWebhooks
Discord.WebhooksUpdate — Type.Sent when a DiscordChannel's Webhooks are updated.
Fields
guild_id :: Snowflake
channel_id :: SnowflakeConnecting
Discord.Ready — Type.Sent when the Client has authenticated, and contains the initial state.
Fields
v :: Int
user :: User
private_channels :: Vector{DiscordChannel}
guilds :: Vector{UnavailableGuild}
session_id :: String
_trace :: Vector{String}Discord.Resumed — Type.