Class TeamSpeakChannel

Hierarchy

  • Abstract<ChannelEntry>
    • TeamSpeakChannel

Constructors

Accessors

Methods

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

    Returns Permission<any>

  • Deletes an existing channel by ID. If force is set to 1, the channel will be deleted even if there are clients within. The clients will be kicked to the default channel with an appropriate reason message.

    Parameters

    • force: boolean = false

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

    Returns Promise<[]>

  • Removes a set of specified permissions from a channel. 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<[]>

  • Changes a channels configuration using given properties. Note that this command accepts multiple properties which means that you're able to change all settings of the channel specified with cid at once.

    Parameters

    • properties: ChannelEdit

      the properties of the channel which should get changed

    Returns Promise<[]>

  • returns a buffer with the icon of the channel

    Returns Promise<Buffer>

  • returns the icon name of the channel

    Returns Promise<number>

  • returns detailed configuration information about a channel including ID, topic, description, etc

    Returns Promise<ChannelInfo>

  • retrieves the namespace of this class

    Returns string

  • retrieves a single property value by the given name

    Type Parameters

    • Y extends keyof ChannelEntry

    Parameters

    • name: Y

      the name from where the value should be retrieved

    Returns ChannelEntry[Y]

  • sends a message to the specified channel

    Parameters

    • msg: string

      message which should be sent to the channel

    Returns Promise<void>

  • Moves a channel to a new parent channel with the ID cpid. If order is specified, the channel will be sorted right under the channel with the specified ID. If order is set to 0, the channel will be sorted right below the new parent.

    Parameters

    • parent: string | TeamSpeakChannel

      channel parent id

    • order: number = 0

      channel sort order

    Returns Promise<[]>

  • Displays a list of permissions defined for a channel.

    Parameters

    • permsid: boolean = false

      whether the permsid should be displayed aswell

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

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

    Parameters

    • perm: PermType

      permission object to set

    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