Class representing a guild group.

Hierarchy

  • Base<number>
    • GuildCategory

Constructors

Properties

client: Client

Bot's client.

createdAt: Date

Date of the creation of the category.

groupID: string

The ID of the group

guildID: string

The ID of the server

id: number

Type of the subscription

name: string

Name of the category (min length 1; max length 100)

updatedAt: null | Date

The date of the last edition of the category.

Methods

  • Delete a category permission.

    Parameters

    • targetID: string | number

      ID of the user or role to delete the permission from

    Returns Promise<void>

  • Get permission coming from a category.

    Parameters

    • targetID: string | number

      ID of the user (string) or role (number) to get the permission for

      Warning: targetID must have the correct type (number=role, string=user).

    Returns Promise<Permission>