Table of Contents

Method ModifyTemplateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyTemplateAsync(string, string?, string?)

Modifies the template's metadata.

public Task<DiscordGuildTemplate> ModifyTemplateAsync(string code, string? name = null, string? description = null)

Parameters

code string

The template's code.

name string

Name of the template.

description string

Description of the template.

Returns

Task<DiscordGuildTemplate>

The template modified.

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.