Create a new Guild Template Method Handler
Usually SnowTransfer creates a method handler for you, this is here for completion
You can access the methods listed via client.guildTemplate.method
, where client
is an initialized SnowTransfer instance
request handler that calls the rest api
Creates a guild from a template. If using a bot account, the bot can only be in < 10 guilds (guild create limitation)
A guild
const client = new SnowTransfer("TOKEN")
const guild = await client.guildTemplate.createGuildFromGuildTemplate("code", { name: "Cool guild" })
The code of the template
Specific options for the new guild
Optional
icon?: null | stringCreates a template from the current state of the guild
Permissions needed | Condition |
---|---|
MANAGE_GUILD | always |
const client = new SnowTransfer("TOKEN")
const template = await client.guildTemplate.createGuildTemplate("guildId", { name: "Cool guild template", description: "This is a cool guild template" })
The Id of the guild
Metadata for the template
Optional
description?: null | stringDeletes a template from a guild
Permissions needed | Condition |
---|---|
MANAGE_GUILD | always |
const client = new SnowTransfer("TOKEN")
const template = await client.guildTemplate.deleteGuildTemplate("guildId", "code")
The Id of the guild
The code of the template
Gets all templates from a guild
An array of guild templates
Permissions needed | Condition |
---|---|
MANAGE_GUILD | always |
const client = new SnowTransfer("TOKEN")
const templates = await client.guildTemplate.getGuildTemplates("guildId")
The Id of the guild
Updates a guild template's metadata
Permissions needed | Condition |
---|---|
MANAGE_GUILD | always |
const client = new SnowTransfer("TOKEN")
const template = await client.guildTemplate.modifyGuildTemplate("guildId", "code", { name: "Coolest guild template", description: "This is the coolest guild template hands down" })
The Id of the guild
The code of the template
Metadata for the template
Optional
description?: null | stringOptional
name?: stringUpdates a guild template to match the current state of the guild
Permissions needed | Condition |
---|---|
MANAGE_GUILD | always |
const client = new SnowTransfer("TOKEN")
const template = await client.guildTemplate.syncGuildTemplate("guildId", "code")
The Id of the guild
The code of the template
Generated using TypeDoc
Methods for interacting with Guild Templates