Method GetTemplateAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetTemplateAsync(string)
Gets a guild template by the code.
public Task<DiscordGuildTemplate> GetTemplateAsync(string code)
Parameters
code
stringThe code of the template.
Returns
- Task<DiscordGuildTemplate>
The guild template for the code.
Exceptions
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.