TheHolyWaffle / TeamSpeak-3-Java-API

A Java wrapper of TeamSpeak's 3 server query API.
MIT License
306 stars 107 forks source link

API incompatible with the newest version? #339

Closed Rindula closed 4 years ago

Rindula commented 5 years ago

I noticed, when updated the TS3 Server many commands like create a Channel, move a Client, message a Client and so on don't work anymore. Renaming the Channel still works fine.

Edit: TS Server Version: 3.9.1

sgebauer commented 5 years ago

Similar problem here after updating to 3.9.1. Creating and editing channels mostly works, except when you try to set a channel icon ID:

com.github.theholywaffle.teamspeak3.api.exception.TS3CommandFailedException: A "channeledit" command returned with a server error.
>> invalid parameter (ID 1538)
rogermb commented 5 years ago

@sgebauer If I recall correctly, channel icons on TeamSpeak are not a channel property, but rather a channel permission. Keep in mind that this API is a rather thin wrapper around the Server Query interface.

Example:

api.addChannelPermission(targetChannelId, "i_icon_id", someIconId);
sgebauer commented 5 years ago

I've used the CHANNEL_ICON_ID channel property so far. The 3.9.1 documentation still lists it as changeable, but trying to change it via api.editChannel fails now.

Anyway, setting the i_icon_id permission instead works. Thank you!

rogermb commented 5 years ago

@sgebauer Yeah, I think that's because it works (as a channel property) when first creating the channel, if I recall correctly. Just TeamSpeak things 😛