Method DeleteGuild
| Improve this Doc View SourceDeleteGuild(Snowflake)
Deletes a guild permanently.
Note: current bot must be the owner.
Declaration
public Task DeleteGuild(Snowflake guildId)
Parameters
| Type | Name | Description |
|---|---|---|
| Snowflake | guildId |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| DiscordHttpApiException |
DeleteGuild(DiscordGuild)
Deletes a guild permanently.
Note: current bot must be the owner.
Declaration
public Task DeleteGuild(DiscordGuild guild)
Parameters
| Type | Name | Description |
|---|---|---|
| DiscordGuild | guild |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | |
| DiscordHttpApiException |