Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Create DM channel with id and author alone #1850

Merged
merged 2 commits into from
May 24, 2021

Conversation

SubZero0
Copy link
Member

Summary

GW v8 stopped sending CHANNEL_CREATEs for DMs so Discord.Net didn't have a cached channel and would ignore it as an unknown channel.
This PR will add the possibility to create DM channels with the channel id and author alone and cache this instead when receiving a MESSAGE_CREATE.
It will assume if no channel is found and there's no guild id specified, it must be a direct message. The only way I could see this not working would be for group channels that bots can't be a part of.

@SubZero0 SubZero0 merged commit 95bae78 into discord-net:dev May 24, 2021
@SubZero0 SubZero0 deleted the fix-dms branch May 24, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant