Class TeamSpeakClient

Hierarchy

  • Abstract<ClientEntry>
    • TeamSpeakClient

Constructors

Accessors

  • get channelGroupInheritedChannelId(): number
  • Returns number

  • get country(): undefined | string
  • Returns undefined | string

  • get estimatedLocation(): undefined | string
  • Returns undefined | string

Methods

  • Adds a set of specified permissions to a client. Multiple permissions can be added by providing the three parameters of each permission. A permission can be specified by permid or permsid.

    Parameters

    • perm: PermType

      the permission object to set

    Returns Promise<[]>

  • bans the chosen client with its uid

    Parameters

    • banreason: string

      ban reason

    • Optional time: number

      bantime in seconds, if left empty it will result in a permaban

    Returns Promise<BanAdd>

  • Adds a set of specified permissions to a client. Multiple permissions can be added by providing the three parameters of each permission. A permission can be specified by permid or permsid.

    Returns Permission<any>

  • removes a custom property from the client

    Parameters

    • ident: string

      the key which should be deleted

    Returns Promise<[]>

  • returns a list of custom properties for the client

    Returns Promise<CustomInfo>

  • creates or updates a custom property for the client ident and value can be any value, and are the key value pair of the custom property

    Parameters

    • ident: string

      the key which should be set

    • value: string

      the value which should be set

    Returns Promise<[]>

  • Changes a clients settings using given properties.

    Parameters

    • properties: ClientDBEdit

      the properties which should be modified

    Returns Promise<[]>

  • Removes a set of specified permissions from a client. Multiple permissions can be removed at once. A permission can be specified by permid or permsid

    Parameters

    • perm: string | number

      the permid or permsid

    Returns Promise<[]>

  • edits the client

    Parameters

    • properties: ClientEdit

      the properties to change

    Returns Promise<[]>

  • returns a Buffer with the avatar of the user

    Returns Promise<Buffer>

  • returns the avatar name of the client

    Returns Promise<string>

  • returns the clients database info

    Returns Promise<ClientDBInfo>

  • returns a Buffer with the icon of the client

    Returns Promise<Buffer>

  • gets the icon name of the client

    Returns Promise<number>

  • returns general info of the client, requires the client to be online

    Returns Promise<ClientInfo>

  • retrieves the namespace of this class

    Returns string

  • retrieves a single property value by the given name

    Type Parameters

    • Y extends keyof ClientEntry

    Parameters

    • name: Y

      the name from where the value should be retrieved

    Returns ClientEntry[Y]

  • Retrieves a displayable Client Link for the TeamSpeak Chat

    Returns string

  • evaluates if the client is a query client or a normal client

    Returns boolean

  • kicks the client from their currently joined channel

    Parameters

    • msg: string

      the message the client should receive when getting kicked (max 40 Chars)

    Returns Promise<[]>

  • kicks the client from the server

    Parameters

    • msg: string

      the message the client should receive when getting kicked

    Returns Promise<[]>

  • sends a textmessage to the client

    Parameters

    • msg: string

      the message the client should receive

    Returns any

  • moves the client to a different channel

    Parameters

    • cid: string | TeamSpeakChannel

      channel id in which the client should get moved

    • Optional cpw: string

      the channel password

    Returns Promise<[]>

  • returns a list of permissions defined for the client

    Parameters

    • Optional permsid: boolean

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

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

  • pokes the client with a certain message

    Parameters

    • msg: string

      the message the client should receive

    Returns Promise<[]>

  • returns JSONifyable data

    Parameters

    • includeNameSpace: boolean = true

    Returns Record<string, any>

  • retrieves the client dbid from a string or teamspeak client

    Type Parameters

    Parameters

    • Optional client: T

    Returns T extends undefined
        ? undefined
        : string

  • retrieves the client id from a string or teamspeak client

    Type Parameters

    Parameters

    • Optional client: T

    Returns T extends undefined
        ? undefined
        : string

  • retrieves the client dbid from a string or teamspeak client

    Type Parameters

    Parameters

    • Optional client: T

    Returns T extends undefined
        ? undefined
        : string

Generated using TypeDoc