Method SyncTemplateAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
SyncTemplateAsync(string)
Syncs the template to the current guild's state.
public Task<DiscordGuildTemplate> SyncTemplateAsync(string code)
Parameters
code
stringThe code of the template to sync.
Returns
- Task<DiscordGuildTemplate>
The template synced.
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.