You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tested the following sequence of events twice now:
Create a discord server/guild
Create an application/bot and associate it with the guild per the instructions on the hunt edit page
Create a new hunt or go to a hunt edit page
I'd expect the lists of Discord channels to be populated there for the various selectors, but they're empty, even after a few minutes. Upon restarting the server the lists are populated immediately.
I see there is an observer for changes to the "disable.discord" flag here which I'd expect to trigger the refresh loop upon completing configuration.
The text was updated successfully, but these errors were encountered:
That causes JR to establish a gateway connection to Discord, and it then listens for various change events that get delivered over the connection. It also does an initial cache of the data at startup time (because you don't get an individual channelCreate event for every channel when you first connect, which is why this works after restarting the server.
However, it looks like getting added to a guild doesn't trigger (e.g.) channelCreate messages for the channels in the guild. Instead (looking at docs), it seems like channels and roles are included in the guildCreate event, so we need to break those out somehow.
I think the cacheResource logic further down is maybe a little too clever to easily adapt to this, but that would basically be the place to start improving the behavior here.
I've tested the following sequence of events twice now:
I'd expect the lists of Discord channels to be populated there for the various selectors, but they're empty, even after a few minutes. Upon restarting the server the lists are populated immediately.
I see there is an observer for changes to the "disable.discord" flag here which I'd expect to trigger the refresh loop upon completing configuration.
The text was updated successfully, but these errors were encountered: