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

x/higa/deno/client/managers/GuildTemplateManager.ts>GuildTemplateManager

A package to interract with the Discord API coded by myself
Latest
class GuildTemplateManager
import { GuildTemplateManager } from "https://deno.land/x/higa@0.1.2/deno/client/managers/GuildTemplateManager.ts";

Constructors

new
GuildTemplateManager(
token: string,
tokenType: string,
version: APIVersions,
)

Properties

readonly
version: APIVersions

API Version

Methods

createGuildFromGuildTemplate(templateCode: string, options: CreateGuildFromTemplateOptions): Promise<Guild>

Create a new guild from a guild template.

createGuildTemplate(guildId: string, options: GuildTemplateOptions): Promise<GuildTemplate>

Creates a guild template

deleteGuildTemplate(guildId: string, templateCode: string): Promise<void>

Deletes a guild template

getGuildTemplate(templateCode: string): Promise<GuildTemplate>

Get the guild template.

getGuildTemplates(guildId: string): Promise<GuildTemplate[]>

Get the templates for a guild

modifyGuildTemplate(
guildId: string,
templateCode: string,
): Promise<GuildTemplate>

Modify a guild template

syncGuildTemplate(guildId: string, templateCode: string): Promise<GuildTemplate>

Syncs a guild template