Discore
Show / Hide Table of Contents

Method DeleteGuild

| Improve this Doc View Source

DeleteGuild(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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX