Table of Contents

Method SyncTemplateAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

SyncTemplateAsync(string)

Syncs the template to the current guild's state.

public Task<DiscordGuildTemplate> SyncTemplateAsync(string code)

Parameters

code string

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