Method LeaveGuild
| Improve this Doc View SourceLeaveGuild(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 |
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 |