GuildTemplate
- class GuildTemplate
A reusable snapshot of a guild’s channels, roles, and settings.
Properties
Property
Type
Description
codeThe template code used to reference this template.
createdAtWhen this template was created.
creatorIdID of the user who created this template, or
null.descriptionTemplate description, or
null.guildIdGuild ID this template was created from.
isDirtyIndicates whether the template is out of sync with the source guild, or
null.nameTemplate name.
sourceGuildIdSource guild ID (for synced templates), or
null.updatedAtWhen this template was last updated.
usageCountNumber of times this template has been used.
Methods
-
async GuildTemplate.delete() Promise<
GuildTemplate> Delete this template.
- Returns:
The deleted template object.
-
async GuildTemplate.edit(options: { description?: string | null; name?: string; }) Promise<
GuildTemplate> Edit template properties.
- Parameters:
options: Template properties to update.
- Returns:
The updated template.
-
async GuildTemplate.sync() Promise<
GuildTemplate> Replace this template’s snapshot with the current guild state. This does not apply the template to the guild.
- Returns:
The updated template.
-
async GuildTemplate.delete() Promise<