[][src]Module automate::gateway::models

Structs

Activity

A user's displayed activity.

ActivityAssets

More information on Discord's documentation

ActivityParty

More information on Discord's documentation

ActivitySecrets

More information on Discord's documentation

ActivityTimestamps

The unix timestamps of the start and the end of the activity in milliseconds.

ActivityUpdate
Attachment
AuditEntryInfo
AuditLog
AuditLogChange
AuditLogEntry
Ban
Category
ChannelCreateDispatch
ChannelDeleteDispatch
ChannelMention
ChannelPinsUpdateDispatch
ChannelUpdateDispatch
ClientStatus

Active sessions are indicated with an "online", "idle", or "dnd" string per platform. If a user is offline or invisible, the corresponding field is not present.

DirectChannel
Embed
EmbedAuthor
EmbedField
EmbedFooter
EmbedImage
EmbedProvider
EmbedThumbnail
EmbedVideo
Emoji
Gateway

An object with a single valid WSS URL, which is used for connecting. This value should be cached.

GatewayBot

An object with a valid WSS URL and additional metadata that can help during the operation of large or sharded bots. This value should not be cached since they may change as the bot joins and leaves guilds.

GroupChannel
Guild
GuildBanAddDispatch
GuildBanRemoveDispatch
GuildCreateDispatch
GuildDeleteDispatch
GuildEmoji
GuildEmojisUpdateDispatch
GuildIntegrationsUpdateDispatch
GuildMember
GuildMemberAddDispatch
GuildMemberRemoveDispatch
GuildMemberUpdateDispatch
GuildMembersChunkDispatch

Sent in response to RequestGuildMembers

GuildRoleCreateDispatch
GuildRoleDeleteDispatch
GuildRoleUpdateDispatch
GuildUpdateDispatch
Heartbeat
Hello
Identify
InvalidSession
Invite
InviteChannel
InviteCreateDispatch
InviteDeleteDispatch
MentionnedUser
Message
MessageActivity
MessageApplication
MessageCreateDispatch
MessageDeleteBulkDispatch
MessageDeleteDispatch
MessageReactionAddDispatch
MessageReactionRemoveAllDispatch
MessageReactionRemoveDispatch
MessageReactionRemoveEmojiDispatch
MessageReference
MessageUpdateDispatch
NewsChannel
Overwrite
PartialEmoji
PartialGuild
PartialGuildMember
PartialInvite
PartialMessage
PartialPresenceUpdate

A user's presence is their current state on a guild. This event is sent when a user's presence or info, such as name or avatar, is updated.

PartialRole
PartialUser

A User object with all fields optional except for ̀id`.

PartialVoiceState
Payload

A Discord Gateway API Payload. Contains the event data and the sequence number used to resume sessions.

PresenceUpdate

A user's presence is their current state on a guild. This event is sent when a user's presence or info, such as name or avatar, is updated.

PresenceUpdateDispatch
PresencesReplaceDispatch

This payload should not be handled by bots as it will always be empty and does not mean anything.

Reaction
ReadyDispatch

Sent by Discord's Gateway API after connection was successfully established. Contains data about bot itself, the guils it is in and the DMs.

Reconnect
RequestGuildMembers
Resume
ResumedDispatch
Role
SessionStartLimit

Information about the sessions allowed for the current user.

StoreChannel
TextChannel
TypingStartDispatch
UnavailableGuild
UpdateStatus
UpdateVoiceState
User

Users in Discord are generally considered the base entity. Users can spawn across the entire platform, be members of guilds, participate in text and voice chat, and much more. Users are separated by a distinction of "bot" vs "normal." Although they are similar, bot users are automated users that are "owned" by another user. Unlike normal users, bot users do not have a limitation on the number of Guilds they can be a part of.

UserUpdateDispatch
VoiceChannel
VoiceRegion
VoiceServerUpdateDispatch
VoiceState
VoiceStateUpdateDispatch
Webhook
WebhooksUpdateDispatch

Enums

ActivityFlags
ActivityType
AuditLogChangeValue
AuditLogEvent
Channel
ChannelType
EmbedType
ExplicitContentFilterLevel
GuildChannel
GuildFeature
Intent

System to help define which events discord will send to your bot. An intent is a single or a group of event types.

MFALevel
MessageActivityType
MessageFlags
MessageNotificationLevel
MessageType
OverwriteType
Permission
PremiumTier
PrivateChannel
StatusType
VerificationLevel
WebhookType