Table of Contents

Method GetTemplateAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

GetTemplateAsync(string)

Gets a guild template by the code.

public Task<DiscordGuildTemplate> GetTemplateAsync(string code)

Parameters

code string

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