swc/bundler/tests/.cache/deno/a8d3cce3f6bdf87eabd34a5ccee844f8fee55365.ts
강동윤 d60c3242af
fix(swc): Fix bugs (#1739)
swc_bundler:
 - Fix cycle detection for complex circular imports. (denoland/deno#10752)

swc_ecma_transforms_typescript:
 - Allow using large values for an enum variant.
2021-05-25 14:30:17 +09:00

32 lines
1.1 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/templates/template.ts
import { Guild } from "../guilds/guild.ts";
import { User } from "../users/user.ts";
/** https://discord.com/developers/docs/resources/template#template-object-template-structure */
export interface Template {
/** The template code (unique Id) */
code: string;
/** Template name */
name: string;
/** The description for the template */
description: string | null;
/** Number of times this template has been used */
usageCount: number;
/** The Id of the user who created the template */
creatorId: string;
/** The user who created the template */
creator: User;
/** When this template was created */
createdAt: string;
/** When this template was last synced to the source guild */
updatedAt: string;
/** The Id of the guild this template is based on */
sourceGuildId: string;
/** The guild snapshot this template contains */
serializedSourceGuild: Partial<Guild>;
/** Whether the template has unsynced changes */
isDirty: boolean | null;
}