import type { DiscordTemplate } from '@discordeno/types'; import type Client from '../../Client.js'; import type { GuildTemplateOptions } from '../../typings.js'; import User from '../users/User.js'; import Guild from './Guild.js'; export declare class GuildTemplate { /** The client class itself. */ client: Client; /** 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 user who created the template */ creator: User; /** When this template was created */ createdAt: number; /** When this template was last synced to the source guild */ updatedAt: number; /** The guild snapshot this template contains */ serializedSourceGuild: Guild; /** The guild this template is based on. If the guild is not cached, this will be an object with `id` key. No other property is guaranteed */ sourceGuild: Guild | { id: string; }; /** Whether the template has un-synced changes */ isDirty: boolean | null; constructor(data: DiscordTemplate, client: Client); /** * @deprecated Use .client instead. */ get _client(): Client; /** Create a guild based on this template. Only for bots in less than 10 guilds */ createGuild(name: string, icon?: string): Promise; /** Delete this template */ delete(): Promise; /** Edit this template */ edit(options: GuildTemplateOptions): Promise; /** Force this template to sync to the guild's current state */ sync(): Promise; toJSON(props?: string[]): Record; } export default GuildTemplate; //# sourceMappingURL=Template.d.ts.map