• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • Happy New Year everyone! A new version (1.0.0-beta.16) is out for Linux, fixing an issue that could lock the bot up when using it with TS3. Please visit the resources section or the main page (https://www.sinusbot.com) for the new package.

EN getChannelGroup dont update

GowLi

#stayinghome
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

Well-Known 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.
 
Top