• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

EN getChannelGroup dont update

GowLi

Member
Hello, I have the problem that in the following code the channel group is set only once. If you want to check the updated group again, the old value still exists. When the bot or the bot reconnects it will be updated and the code will do what it should do but after that you have to reconnect which is not the vim code. Does anyone know the error? Thanks in advance!


Code:
if (ev.client.getChannelGroup().id() == currentConfig.channelGroupOnJoin){
var newChannelGroup = backend.getChannelGroupByID(currentConfig.channelGroup);

if (newChannelGroup){
currentChannel.setChannelGroup(ev.client, newChannelGroup);
}
 
Last edited:

DrWarpMan

Active Member
Contributor
Insider
If it is the issue that I have tried to solve.. then yeah.. this is Sinusbot bug.. the channel group is being taken from cache or something like that.. so it doesn't update instantly. You can do almost nothing about that I guess.
 

Similar threads

Top