Discore
Show / Hide Table of Contents

Method LeaveGuild

| Improve this Doc View Source

LeaveGuild(Snowflake)

Removes the current bot from the specified guild.

Declaration
public Task LeaveGuild(Snowflake guildId)
Parameters
Type Name Description
Snowflake guildId
Returns
Type Description
Task
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

LeaveGuild(DiscordGuild)

Removes the current bot from the specified guild.

Declaration
public Task LeaveGuild(DiscordGuild guild)
Parameters
Type Name Description
DiscordGuild guild
Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX