Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oasis/tests/deps.ts>DiscordTemplate

An object oriented Discordeno framework
Latest
interface DiscordTemplate
Re-export
import { type DiscordTemplate } from "https://deno.land/x/oasis@2.1.0/tests/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

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