GuildTemplate
- class GuildTemplate()
A reusable snapshot of a guild’s channels, roles, and settings.
exported from
lib.weeble.dProperties
- GuildTemplate.creatorId
-
ID of the user who created this template, or
null.
- GuildTemplate.isDirty
-
Indicates whether the template is out of sync with the source guild, or
null.
- GuildTemplate.sourceGuildId
-
Source guild ID (for synced templates), or
null.
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.