[][src]Module automate::gateway

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.

Attachment
AuditEntryInfo
AuditLog
AuditLogChange
AuditLogEntry
Channel
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.

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.

GatewayAPI

Communicates with Discord's gateway

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.

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

Sent in response to RequestGuildMembers

GuildRoleCreateDispatch
GuildRoleDeleteDispatch
GuildRoleUpdateDispatch
GuildUpdateDispatch
Heartbeat
Hello
Identify
InvalidSession
Invite
InviteMetadata
MentionnedUser
Message
MessageActivity
MessageApplication
MessageCreateDispatch
MessageDeleteBulkDispatch
MessageDeleteDispatch
MessageReactionAddDispatch
MessageReactionRemoveAllDispatch
MessageReactionRemoveDispatch
MessageReference
MessageUpdateDispatch
Overwrite
PartialEmoji
PartialGuild
PartialGuildMember
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
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
Reconnect
RequestGuildMembers
Resume
ResumedDispatch
Role
Session
SessionStartLimit

Information about the sessions allowed for the current user.

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
VoiceServerUpdateDispatch
VoiceState
VoiceStateUpdateDispatch
Webhook
WebhooksUpdateDispatch

Enums

ActivityFlags
ActivityType
AuditLogChangeValue
AuditLogEvent
ChannelType
DefaultMessageNotificationLevel
ExplicitContentFilterLevel
GuildFeature
MFALevel
MessageActivityType
MessageFlags
MessageType
OverwriteType
Permission
PremiumTier
StatusType
VerificationLevel
WebhookType