mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
Merge branch 'main' of https://github.com/discordeno/discordeno
This commit is contained in:
9
src/types/templates/create_guild_from_template.ts
Normal file
9
src/types/templates/create_guild_from_template.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface CreateGuildFromTemplate {
|
||||
/** Name of the guild (2-100 characters) */
|
||||
name: string;
|
||||
/** base64 128x128 image for the guild icon */
|
||||
icon?: string;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/template#create-guild-from-template-json-params */
|
||||
export type DiscordCreateGuildFromTemplate = CreateGuildFromTemplate;
|
||||
9
src/types/templates/modify_guild_template.ts
Normal file
9
src/types/templates/modify_guild_template.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface ModifyGuildTemplate {
|
||||
/** Name of the template (1-100 characters) */
|
||||
name?: string;
|
||||
/** Description of the template (0-120 characters) */
|
||||
description?: string | null;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/template#modify-guild-template */
|
||||
export type DiscordModifyGuildTemplate = ModifyGuildTemplate;
|
||||
30
src/types/templates/template.ts
Normal file
30
src/types/templates/template.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { SnakeCaseProps } from "../util.ts";
|
||||
import { User } from "../users/user.ts";
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/template#template-object-template-structure */
|
||||
export type DiscordTemplate = SnakeCaseProps<Template>;
|
||||
Reference in New Issue
Block a user