Table of Contents

Interface IGuildDeleteShardedGatewayHandler

Namespace
NetCord.Hosting.Gateway
Assembly
NetCord.Hosting.dll

Sent when a guild becomes or was already unavailable due to an outage, or when the bot leaves / is removed from a guild.

public interface IGuildDeleteShardedGatewayHandler : IShardedGatewayHandler

Remarks

The inner payload is an unavailable guild object. If the IsUnavailable property is false, the bot was removed from the guild.

Required Intents: Guilds
Optional Intents: None

Methods

HandleAsync(GatewayClient, GuildDeleteEventArgs)

Handles the gateway event.

ValueTask HandleAsync(GatewayClient client, GuildDeleteEventArgs arg)

Parameters

client GatewayClient

The gateway client that represents the shard that received the event.

arg GuildDeleteEventArgs

The event argument.

Returns

ValueTask