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
stringThe template's code.
name
stringName of the template.
description
stringDescription 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.