Class TeamSpeakChannelGroup

Hierarchy

  • Abstract<ChannelGroupEntry>
    • TeamSpeakChannelGroup

Constructors

Accessors

Methods

  • Adds a specified permissions to the channel group. A permission can be specified by permid or permsid.

    Parameters

    • perm: PermType

      the permission object

    Returns Promise<[]>

  • returns the ids of all clients currently residing in the channelgroup

    Parameters

    Returns Promise<ChannelGroupClientList>

  • Creates a copy of the channel group. If tcgid is set to 0, the server will create a new group. To overwrite an existing group, simply set tcgid to the ID of a designated target group. If a target group is set, the name parameter will be ignored.

    Parameters

    • tcgid: string | TeamSpeakChannelGroup

      the target group, 0 to create a new group

    • type: number

      the type of the group (0 = Template Group | 1 = Normal Group)

    • name: string

      name of the group

    Returns Promise<ChannelGroupCopy>

  • Adds a specified permissions to the channel group. A permission can be specified by permid or permsid.

    Returns Permission<any>

  • Deletes the channel group. If force is set to 1, the channel group will be deleted even if there are clients within.

    Parameters

    • Optional force: boolean

      if set to 1 the channelgroup will be deleted even when clients are in it

    Returns Promise<[]>

  • Removes a set of specified permissions from the channel group. A permission can be specified by permid or permsid.

    Parameters

    • perm: string | number

      the permid or permsid

    Returns Promise<[]>

  • returns a buffer with the icon of the channelgroup

    Returns Promise<Buffer>

  • gets the icon name of the channelgroup

    Returns Promise<number>

  • retrieves the namespace of this class

    Returns string

  • retrieves a single property value by the given name

    Type Parameters

    • Y extends keyof ChannelGroupEntry

    Parameters

    • name: Y

      the name from where the value should be retrieved

    Returns ChannelGroupEntry[Y]

  • returns a list of permissions assigned to the channel group specified with cgid.

    Parameters

    • permsid: boolean = false

      if the permsid option is set to true the output will contain the permission names

    Returns Promise<Permission<{
        cgid: string;
    }>[]>

  • changes the name of the channelgroup

    Parameters

    • name: string

      new name of the group

    Returns Promise<[]>

  • sets the channel group of a client

    Parameters

    • channel: string | TeamSpeakChannel

      the channel in which the client should be assigned the Group

    • client: string | TeamSpeakClient

      the client database id which should be added to the Group

    Returns Promise<[]>

  • returns JSONifyable data

    Parameters

    • includeNameSpace: boolean = true

    Returns Record<string, any>

  • retrieves the client id from a string or teamspeak client

    Type Parameters

    Parameters

    • Optional channel: T

    Returns T extends undefined
        ? undefined
        : string

Generated using TypeDoc