oceanic.js
Version:
A NodeJS library for interfacing with Discord.
27 lines (23 loc) • 711 B
TypeScript
/** @module Types/GuildTemplate */
import type { RawGuild } from "./guilds";
import type { RawUser } from "./users";
export interface RawGuildTemplate {
code: string;
created_at: string;
creator: RawUser;
creator_id: string;
description: string | null;
is_dirty: boolean | null;
name: string;
serialized_source_guild: Partial<RawGuild>;
source_guild_id: string;
updated_at: string;
usage_count: number;
}
export interface CreateTemplateOptions {
/** The description of the template. */
description?: string | null;
/** The name of the template. */
name: string;
}
export interface EditGuildTemplateOptions extends Partial<CreateTemplateOptions> {}