Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuildTemplateManager

Hierarchy

  • GuildTemplateManager

Index

Constructors

  • Parameters

    • token: string

      Bot's token

    • tokenType: string
    • version: APIVersions

      API Version

    Returns GuildTemplateManager

Methods

  • Create a new guild from a guild template.

    Parameters

    Returns Promise<Guild>

    A Guild object.

  • Creates a guild template

    Parameters

    • guildId: string

      The ID of the guild you want to create a template for.

    • options: GuildTemplateOptions

      GuildTemplateOptions

    Returns Promise<GuildTemplate>

    A GuildTemplate object.

  • deleteGuildTemplate(guildId: string, templateCode: string): Promise<void>
  • Deletes a guild template

    Parameters

    • guildId: string

      The ID of the guild you want to delete the template from.

    • templateCode: string

      The template code of the template you want to delete.

    Returns Promise<void>

  • Get the guild template.

    Parameters

    • templateCode: string

      The template code of the guild template you want to get.

    Returns Promise<GuildTemplate>

    A GuildTemplate object.

  • Get the templates for a guild

    Parameters

    • guildId: string

      The ID of the guild you want to get the templates of.

    Returns Promise<GuildTemplate[]>

    An array of GuildTemplate objects.

  • Modify a guild template

    Parameters

    • guildId: string

      The ID of the guild you want to modify the template for.

    • templateCode: string

      The template code of the template you want to modify.

    • options: GuildTemplateOptions

      GuildTemplateOptions

    Returns Promise<GuildTemplate>

    A GuildTemplate object.

  • syncGuildTemplate(guildId: string, templateCode: string): Promise<GuildTemplate>
  • Syncs a guild template

    Parameters

    • guildId: string

      The ID of the guild you want to sync the template to.

    • templateCode: string

      The template code to sync to the guild.

    Returns Promise<GuildTemplate>

    A GuildTemplate object.

Properties

version: APIVersions

API Version

#token: string

Bot's token

#tokenType: string

Token type

Generated using TypeDoc