Adds a client to a server group.
The server group to add the client to.
The client to add.
A promise that resolves when the client has been added.
Adds a permission to a server group. You can also edit the permission using this method.
The server group to add the permission to.
The options for adding or editing the permission.
A promise that resolves when the permission has been added or edited.
Copies a server group into a new server group.
The source server group to copy.
The options for copying the server group.
The created server group.
Copies a server group into an existing server group.
The source server group to copy.
The options for copying the server group.
A promise that resolves when the server group has been copied.
Creates a new server group.
The options for creating the server group.
The created server group.
Deletes a server group.
The server group to delete.
Optional
force: boolean = falseWhether to force the deletion. Force deletion will remove the server group from all clients.
A promise that resolves when the server group has been deleted.
Obtains all server groups from TeamSpeak.
The server groups.
Fetches the client database IDs from a server group.
The server group to fetch the client database IDs from.
A promise that resolves with the client database IDs.
Fetches the permissions from a server group.
The server group to fetch the permissions from.
A promise that resolves with the permissions.
Removes a client from a server group.
The server group to remove the client from.
The client to remove.
A promise that resolves when the client has been removed.
Removes a permission from a server group.
The server group to remove the permission from.
The permission to remove. This can be a permission object, a permission ID (number), or a permission server ID (string, such as "i_channel_modify_power").
A promise that resolves when the permission has been removed.
Renames a server group.
The server group to rename.
The new name for the server group.
The updated server group.
Resolves a server group ID.
The object to resolve.
The server group ID.
Manages the server groups in the TeamSpeak server.