1.0.0 • Published 7 years ago

@ts3/definitions v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

TeamSpeak 3 Definitions

This package provide a simple way to use the TeamSpeak 3 definitions used by the server.

Donate

Installation

npm install @ts3/definitions

Usage

Typescript

import {TS3Definitions} from "@ts3/definitions";
console.log(TS3Definitions.HostMessageMode.MODALQUIT); // Display 3

Javascript

const TS3Definitions = require("@ts3/definitions");
console.log(TS3Definitions.HostMessageMode.MODALQUIT); // Display 3

Definitions

Here is the full list of available definitions

HostMessageMode

KeyValueDescription
NONE0Don't display anything
LOG1Display message in chatlog
MODAL2Display message in modal dialog
MODALQUIT3Display message in modal dialog and close connection

HostBannerMode

KeyValueDescription
NOADJUST0Do not adjust
IGNOREASPECT1Adjust but ignore aspect ratio (like TeamSpeak 2)
KEEPASPECT2Adjust and keep aspect ratio

Codec

KeyValueDescription
SPEEX_NARROWBAND0Speex narrowband (mono, 16bit, 8kHz)
SPEEX_WIDEBAND1Speex wideband (mono, 16bit, 16kHz)
SPEEX_ULTRAWIDEBAND2Speex ultra-wideband (mono, 16bit, 32kHz)
CELT_MONO3Celt mono (mono, 16bit, 48kHz)

CodecEncryptionMode

KeyValueDescription
INDIVIDUAL0Encryption enabled per channel
DISABLED1Encryption globally disabled
ENABLED2Encryption globally enabled

TextMessageTargetMode

KeyValueDescription
CLIENT1Target is a client
CHANNEL2Target is a channel
SERVER3Target is a virtual server

LogLevel

KeyValueDescription
ERROR1Everything that is really bad
WARNING2Everything that might be bad
DEBUG3Output that might help find a problem
INFO4Informational output

ReasonKick

KeyValueDescription
CHANNEL4Kick client from channel
SERVER5Kick client from server

PermissionGroupType

KeyValueDescription
SERVER_GROUP0Server group permission
CLIENT1Client specific permission
CHANNEL2Channel specific permission
CHANNEL_GROUP3Channel group permission
CHANNEL_CLIENT4Channel-client specific permission

TokenType

KeyValueDescription
SERVER_GROUP0Server group token
CHANNEL_GROUP1Channel group token
1.0.0

7 years ago