Preview environment

interface APITemplate

export interface APITemplate

https://discord.com/developers/docs/resources/guild-template#guild-template-object

code : string

The template code (unique ID)

created_at : string

When this template was created

creator_id : Snowflake

The ID of the user who created the template

creator : APIUser

The user who created the templateSee https://discord.com/developers/docs/resources/user#user-object

description : string | null

The description for the template

is_dirty : boolean | null

Whether the template has unsynced changes

name : string

Template name

serialized_source_guild : APITemplateSerializedSourceGuild

The guild snapshot this template contains

source_guild_id : Snowflake

The ID of the guild this template is based on

updated_at : string

When this template was last synced to the source guild

usage_count : number

Number of times this template has been used