[Bug]: DM channels and messages does not get cached
DorkixAzIgazi opened this issue · 0 comments
DorkixAzIgazi commented
Check The Docs
- I double checked the docs and couldn't find any useful information.
Verify Issue Source
- I verified the issue was caused by Discord.Net.
Check your intents
- I double checked that I have the required intents.
Description
Caching for messages is not implemented in the DM channel: source
Messages get added to the cache when the MessageRecieved event is fired, so as text channels when created in the guild, but discord does not send a gateway event when a DM channel is created, so they never get added to the cache, and message sent in them can't be added either as the dm channels are not found in the cache (and as mentioned above the messageAdd function is not implemented for DM channels either).
Version
3.9.0
Working Version
No response
Logs
No logs. Use CreateDMChannelAsync() on the user and send a message, then check the DiscordSocketClient.State property, no dms will be in the dmChannels list.
Sample
No response
Packages
Nothing extra