Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Currently available TS3 clientlib functions to be called from Lua:
- ********** Clientlib **********
- *** Common ***
- ts3.getClientLibVersion() > version, error
- *** Error handling ***
- ts3.getErrorMessage(errorCode) > errorMessage, error
- *** Loggin ***
- ts3.logMessage(logMessage, severity, channel, logID) > error
- *** Preprocessor ***
- ts3.getPreProcessorInfoValueFloat(serverConnectionHandlerID, ident) > result, error
- ts3.getPreProcessorConfigValue(serverConnectionHandlerID, ident) > result, error
- ts3.setPreProcessorConfigValue(serverConnectionHandlerID, ident, value) > error
- *** Encoder ***
- ts3.getEncodeConfigValue(serverConnectionHandlerID, ident) > result, error
- *** Playback ***
- ts3.getPlaybackConfigValueAsFloat(serverConnectionHandlerID, ident) > result, error
- ts3.setPlaybackConfigValue(serverConnectionHandlerID, ident, value) > error
- *** Interaction with the server
- ts3.requestClientMove(serverConnectionHandlerID, clientID, newChannelID, password) > error
- ts3.requestClientVariables(serverConnectionHandlerID, clientID) > error
- ts3.requestClientKickFromChannel(serverConnectionHandlerID, clientID, kickReason) > error
- ts3.requestClientKickFromServer(serverConnectionHandlerID, clientID, kickReason) > error
- ts3.requestChannelDelete(serverConnectionHandlerID, channelID, force) > error
- ts3.requestChannelMove(serverConnectionHandlerID, channelID, newChannelParentID) > error
- ts3.requestSendPrivateTextMsg(serverConnectionHandlerID, message, targetClientID) > error
- ts3.requestSendChannelTextMsg(serverConnectionHandlerID, message, targetChannelID) > error
- ts3.requestSendServerTextMsg(serverConnectionHandlerID, message) > error
- ts3.requestConnectionInfo(serverConnectionHandlerID, clientID) > error
- -- requestClientSetWhisperList TODO
- ts3.requestChannelSubscribe(serverConnectionHandlerID, channelID) > error
- ts3.requestChannelUnsubscribe(serverConnectionHandlerID, channelID) > error
- ts3.requestChannelSubscribeAll(serverConnectionHandlerID) > error
- ts3.requestChannelUnsubscribeAll(serverConnectionHandlerID) > error
- ts3.requestChannelDescription(serverConnectionHandlerID, channelID) > error
- -- requestMuteClients TODO
- -- requestUnmuteClients TODO
- *** Access clientlib information ***
- *** Query own client ID ***
- ts3.getClientID(serverConnectionHandlerID) > clientID, error
- *** Client info ***
- ts3.getClientSelfVariableAsInt(serverConnectionHandlerID, flag) > result, error
- ts3.getClientSelfVariableAsString(serverConnectionHandlerID, flag) > result, error
- ts3.setClientSelfVariableAsInt(serverConnectionHandlerID, flag, value) > error
- ts3.setClientSelfVariableAsString(serverConnectionHandlerID, flag, value) > error
- ts3.flushClientSelfUpdates(serverConnectionHandlerID) > error
- ts3.getClientVariableAsInt(serverConnectionHandlerID, clientID, flag) > result, error
- ts3.getClientVariableAsUInt64(serverConnectionHandlerID, clientID, flag) > result, error
- ts3.getClientVariableAsString(serverConnectionHandlerID, clientID, flag) > result, error
- ts3.getClientList(serverConnectionHandlerID) > clientsList, error
- ts3.getChannelOfClient(serverConnectionHandlerID, clientID) > channelID, error
- *** Client connection info
- ts3.getConnectionStatus(serverConnectionHandlerID) > result, error
- getConnectionVariableAsUInt64(serverConnectionHandlerID, clientID, flag) > result, error
- getConnectionVariableAsDouble(serverConnectionHandlerID, clientID, flag) > result, error
- getConnectionVariableAsString(serverConnectionHandlerID, clientID, flag) > result, error
- cleanUpConnectionInfo(serverConnectionHandlerID, clientID) > error
- *** Channel info ***
- ts3.getChannelVariableAsInt(serverConnectionHandlerID, channelID, flag) > result, error
- ts3.getChannelVariableAsString(serverConnectionHandlerID, channelID, flag) > result, error
- ts3.getChannelIDFromChannelNames(serverConnectionHandlerID, channelNames) > channelID, error
- ts3.setChannelVariableAsInt(serverConnectionHandlerID, channelID, flag, value) > error
- ts3.setChannelVariableAsString(serverConnectionHandlerID, channelID, flag, value) > error
- ts3.flushChannelUpdates(serverConnectionHandlerID, channelID) > error
- ts3.flushChannelCreation(serverConnectionHandlerID, channelParentID) > error
- ts3.getChannelList(serverConnectionHandlerID) > channelList, error
- ts3.getChannelClientList(serverConnectionHandlerID, channelID) > clientList, error
- ts3.getParentChannelOfChannel(serverConnectionHandlerID, channelID) > parentChannelID, error
- *** Server info ***
- ts3.getServerConnectionHandlerList() > serverConnectionHandlerIDList, error
- ts3.getServerVariableAsInt(serverConnectionHandlerID, flag) > result, error
- ts3.getServerVariableAsUInt64(serverConnectionHandlerID, flag) > result, error
- ts3.getServerVariableAsString(serverConnectionHandlerID, flag) > result, error
- ts3.requestServerVariables(serverConnectionHandlerID) > error
- ********** Clientlib rare **********
- *** Sound ***
- ts3.playWaveFile(serverConnectionHandlerID, path) > error
- *** Interacting with the server - general ***
- ts3.requestClientPoke(serverConnectionHandlerID, clientID, message) > error
- *** Interacting with the server - banning ***
- ts3.banclient(serverConnectionHandlerID, clientID, timeInSeconds, banReason) > error
- ts3.banadd(serverConnectionHandlerID, ipRegExp, nameRegexp, uniqueIdentity, timeInSeconds, banReason) > error
- ts3.bandel(serverConnectionHandlerID, banID) > error
- ts3.bandelall(serverConnectionHandlerID) > error
- ts3.requestBanList(serverConnectionHandlerID) > error
- *** Interacting with the server - complain ***
- requestComplainAdd(serverConnectionHandlerID, targetClientDatabaseID, complainReason) > error
- requestComplainDel(serverConnectionHandlerID, targetClientDatabaseID, fromClientDatabaseID) > error
- requestComplainDelAll(serverConnectionHandlerID, targetClientDatabaseID) > error
- requestComplainList(serverConnectionHandlerID, targetClientDatabaseID) > error
- ********** Client functions **********
- ts3.getAppPath() > appPath
- ts3.getResourcesPath() > resourcesPath
- ts3.getConfigPath() > configPath
- ts3.getPluginPath() > pluginPath
- ts3.getCurrentServerConnectionHandlerID() > serverConnectionHandlerID
- ts3.printMessage(serverConnectionHandlerID, message, pluginMessageTargetMode)
- ts3.printMessageToCurrentTab(message)
- ts3.urlsToBB(textWithURLs) > bbCodeText
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement