Class TeamSpeakServerGroup

Hierarchy

  • Abstract<ServerGroupEntry>
    • TeamSpeakServerGroup

Constructors

Accessors

Methods

  • Adds a client to the server group. Please note that a client cannot be added to default groups or template groups.

    Parameters

    Returns Promise<[]>

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

    Parameters

    • perm: PermType

      the permission object to set

    Returns Promise<[]>

  • returns the ids of all clients currently residing in the server group

    Returns Promise<ServerGroupClientEntry[]>

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

    Parameters

    • targetGroup: string | TeamSpeakServerGroup
    • type: number

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

    • name: string

      name of the group

    Returns Promise<ServerGroupCopy>

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

    Returns Permission<any>

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

    Parameters

    • Optional force: boolean

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

    Returns Promise<[]>

  • removes a client specified with cldbid from the servergroup

    Parameters

    Returns Promise<[]>

  • rmoves a set of specified permissions from the server 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 servergroup

    Returns Promise<Buffer>

  • gets the icon id of the servergroup

    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 ServerGroupEntry

    Parameters

    • name: Y

      the name from where the value should be retrieved

    Returns ServerGroupEntry[Y]

  • returns a list of permissions assigned to the server group specified with sgid

    Parameters

    • permsid: boolean

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

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

  • changes the name of the server group

    Parameters

    • name: string

      new name of 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 group: T

    Returns T extends undefined
        ? undefined
        : string

Generated using TypeDoc