• We would like to invite you to check out the latest 1.0 alpha versions. You can read more about what's new here. Please note, that this is still an early release and will contain new bugs ¯\_(ツ)_/¯
  • 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