Table of Contents

Method DeleteTemplateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DeleteTemplateAsync(string)

Deletes the template.

public Task<DiscordGuildTemplate> DeleteTemplateAsync(string code)

Parameters

code string

The 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.