Latest
interface DiscordTemplate
import { type DiscordTemplate } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/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

import DiscordTemplate
import { DiscordTemplate } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/helpers/deps.ts";