Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface DiscordTemplate
Re-export
import { type DiscordTemplate } from "https://deno.land/x/discordeno@17.2.0/plugins/cache/deps.ts";

Properties

code: string

The template code (unique Id)

name: string

Template name

description: string | null

The description for the template

usage_count: number

Number of times this template has been used

creator_id: string

The Id of the user who created the template

creator: DiscordUser

The user who created the template

created_at: string

When this template was created

updated_at: string

When this template was last synced to the source guild

source_guild_id: string

The Id of the guild this template is based on

serialized_source_guild: Omit<PickPartial<DiscordGuild,
| "name"
| "description"
| "verification_level"
| "default_message_notifications"
| "explicit_content_filter"
| "preferred_locale"
| "afk_timeout"
| "channels"
| "afk_channel_id"
| "system_channel_id"
| "system_channel_flags"
>, "roles"> & { roles: (Omit<PickPartial<DiscordRole,
| "name"
| "color"
| "hoist"
| "mentionable"
| "permissions"
| "icon"
| "unicode_emoji"
>, "id"> & { id: number; })[]; }

The guild snapshot this template contains

is_dirty: boolean | null

Whether the template has un-synced changes