Class GuildRemovedEventArgs
- Namespace
- Nyra.Abstractions
- Assembly
- Nyra.dll
Raised when the bot was removed from a Discord guild.
public sealed class GuildRemovedEventArgs : EventArgs
- Inheritance
-
GuildRemovedEventArgs
- Inherited Members
Remarks
A guild removal produces no voice state update for the bot, so this is the only notification a live voice connection gets while the gateway session is connected. A removal that lands inside a gateway outage that invalidates the session is not reported because no guild delete is dispatched for it, so the re-invite join has to notice the dead connection on its own.
Constructors
GuildRemovedEventArgs(ulong)
Initializes the event args with the reported values.
public GuildRemovedEventArgs(ulong guildId)
Parameters
guildIdulongThe id of the guild the bot was removed from.
Properties
GuildId
The id of the guild the bot was removed from.
public ulong GuildId { get; }