Method DeleteTemplateAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DeleteTemplateAsync(string)
Deletes the template.
public Task<DiscordGuildTemplate> DeleteTemplateAsync(string code)
Parameters
code
stringThe code of the template to delete.
Returns
- Task<DiscordGuildTemplate>
The deleted template.
Exceptions
- NotFoundException
Throws when the template for the code cannot be found
- UnauthorizedException
Throws when the client does not have the ManageGuild permission.
- ServerErrorException
Thrown when Discord is unable to process the request.