Discore
Show / Hide Table of Contents

Interface IDiscordGateway

Namespace: Discore.WebSocket
Assembly: Discore.dll
Syntax
public interface IDiscordGateway

Properties

Name Description
Shard

Gets the shard that is managing this gateway connection.

Methods

Name Description
RequestGuildMembersAsync(Snowflake, string, int, CancellationToken?)

Requests guild members from the Discord API, this can be used to retrieve offline members in a guild that is considered "large". "Large" guilds will not automatically have the offline members available.

UpdatePresenceAsync(PresenceOptions, CancellationToken?)

Updates the presence/status of the bot user.

UpdateVoiceStateAsync(Snowflake, Snowflake?, bool, bool, CancellationToken?)

Joins, moves, or disconnects the application from a voice channel.

Events

Name Description
OnChannelCreate

Called when a channel is created, relavent to the current application.

OnChannelDelete

Called when a channel is deleted, relavent to the current application.

OnChannelPinsUpdate

Called when a message is pinned or unpinned from a channel.

OnChannelUpdate

Called when a channel is updated.

OnGuildBanAdd

Called when a user is banned from a guild.

OnGuildBanRemove

Called when a user ban is removed from a guild (i.e. they were unbanned).

OnGuildCreate

Called when this application joins a guild or when a known guild that was unavailable becomes available again (i.e. when the Gateway discovers guilds that the user is in when connecting).

OnGuildDelete

Called when this application is removed from a guild or when a guild becomes unavailable (if the guild became unavailable, this application was NOT removed from the guild).

OnGuildEmojisUpdate

Called when the emojis of a guild are updated.

OnGuildIntegrationsUpdate

Called when the integrations of a guild are updated.

OnGuildMemberAdd

Called when a user joins a guild.

OnGuildMemberRemove

Called when a user leaves or gets kicked/banned from a guild.

OnGuildMembersChunk

Called when members are requested for a guild.

OnGuildMemberUpdate

Called when a member is updated for a specific guild.

OnGuildRoleCreate

Called when a role is added to a guild.

OnGuildRoleDelete

Called when a role is removed from a guild.

OnGuildRoleUpdate

Called when a guild role is updated.

OnGuildUpdate

Called when a guild is updated.

OnMessageCreate

Called when a message is created (either from a DM or guild text channel).

OnMessageDelete

Called when a message is deleted.

If multiple messages are deleted in bulk, this event will be fired for each individual message.
OnMessageReactionAdd

Called when someone reacts to a message.

OnMessageReactionRemove

Called when a reaction is removed from a message.

OnMessageReactionRemoveAll

Called when all reactions are removed from a message at once.

OnMessageUpdate

Called when a message is updated.

Message contained in this event is only partially filled out! The only guaranteed field is the channel the message was sent in.

OnPresenceUpdate

Called when the presence of a member in a guild is updated.

OnReady

Called when the Gateway establishes a new session.

OnTypingStart

Called when a user starts typing.

OnUserUpdate

Called when a user is updated.

OnVoiceServerUpdate

Called when the voice server for a guild is updated.

OnVoiceStateUpdate

Called when someone joins/leaves/moves voice channels.

OnWebhookUpdate

Called when a webhook is updated.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX