• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

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

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