Reproduction for bug with Nostrum ~0.9 where channel cache is unpopulated
- Use elixir & erlang versions as noted in
.tool-versions(only really need to care about major/minor versions). - Set up
NOSTRUM_REPRO_TOKENenvironment variable with a test bot account token. (All intents are requested, and message content is required for this test). - Run with
iex -S mix - Run
!!repro hereon a channel in Discord. Normally this would work but in this case it should spit out an error in logs about no match for the channel in cache. - Run
!!repro find <channel_id>. This should have the same outcome as above. - Run
!!repro count. This would be expected to output some number of channels in cache, but instead only outputs0.
Relevant code in ./lib/repro/consumer.ex.