So the plugin only syncs roles/groups when it's being loaded, I have tried everything but can't get it to work, it just doesn't sync roles on every 2seconds. I suppose the plugins code needs to be updated
Not updating roles/groups every 2seconds (or whatever amount u set in config file)
Here is console logs, after setting log levels to "info". Durning 5minute time frame I have changed roles in Discord server (config file is configured just fine), but nothing happens. It only synced roles/groups after reloading it.
Loaded plugin Discord Roles v2.1.0 by MJSU
[Discord Roles] Message: Starting sync for 1 linked players
[Discord Roles] Info: Start processing: Player: ant pahmielo(76561############) Discord: DoVis(443811239387332609) Is Leaving: False
[Discord Roles] Info: Processing Server for ant pahmielo(76561############) Discord DoVis(443811239387332609) Is Leaving False
[Discord Roles] Info: Processing Discord for ant pahmielo(76561############) Discord DoVis(443811239387332609) Is Leaving False Roles: vip (1302394568091631737)
[Discord Roles] Message: Adding player ant pahmielo(76561############) DoVis(443811239387332609) to server group vip
[Discord Roles] Info: HandleUserNick don't sync nicknames or is leaving
[Discord Roles] Info: OnDiscordGuildMemberUpdated Skipping (443811239387332609) no changes detected.
Saved 30,612 ents, cache(0.02), write(0.01), disk(0.01).
Saving complete
Shutting down compiler because idle shutdown
Compiler shutdown completed
Saved 30,632 ents, cache(0.
your really asking for trouble having it check that often imo. you could set it to like 5 minutes, and reload it with a timer exec like the timedexecute plugin if you had to.
The 2 second check is only for startup since that is when the biggest sync happens and we don't want to hit the Discord API rate limits. All the other syncs are controlled by triggers set in the config.