Table of Contents

Method GetTemplatesAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

GetTemplatesAsync(CancellationToken)

Gets all of this guild's templates.

public Task<IReadOnlyList<DiscordGuildTemplate>> GetTemplatesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyList<DiscordGuildTemplate>>

All of the guild's templates.

Exceptions

UnauthorizedException

Throws when the client does not have the ManageGuild permission.

ServerErrorException

Thrown when Discord is unable to process the request.