Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuildTemplateMethods

Methods for interacting with Guild Templates

Hierarchy

  • GuildTemplateMethods

Index

Constructors

  • Create a new Guild Template Method Handler

    Usually SnowTransfer creates a method handler for you, this is here for completion

    You can access the methods listed via client.guildTemplate.method, where client is an initialized SnowTransfer instance

    Parameters

    Returns <internal>.GuildTemplateMethods

Properties

requestHandler: <internal>.RequestHandler

Methods

  • Creates a template from the current state of the guild

    Parameters

    • guildId: string

      The Id of the guild

    • data: { description?: null | string; name: string }

      Metadata for the template

      • Optional description?: null | string
      • name: string

    Returns Promise<<internal>.GuildTemplate>

    A guild tempalte

    Permissions needed Condition
    MANAGE_GUILD always
  • Deletes a template from a guild

    Parameters

    • guildId: string

      The Id of the guild

    • code: string

      The code of the template

    Returns Promise<<internal>.GuildTemplate>

    A guild template

    Permissions needed Condition
    MANAGE_GUILD always
  • Gets all templates from a guild

    Parameters

    • guildId: string

      The Id of the guild

    Returns Promise<<internal>.GuildTemplate[]>

    An array of guild templates

    Permissions needed Condition
    MANAGE_GUILD always
  • Updates a guild template's metadata

    Parameters

    • guildId: string

      The Id of the guild

    • code: string

      The code of the template

    • data: { description?: null | string; name?: string }

      Metadata for the template

      • Optional description?: null | string
      • Optional name?: string

    Returns Promise<<internal>.GuildTemplate>

    A guild template

    Permissions needed Condition
    MANAGE_GUILD always
  • Updates a guild template to match the current state of the guild

    Parameters

    • guildId: string

      The Id of the guild

    • code: string

      The code of the template

    Returns Promise<<internal>.GuildTemplate>

    A guild template

    Permissions needed Condition
    MANAGE_GUILD always

Generated using TypeDoc