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 channel being null in most cases on Interactions #2098

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

quinchs
Copy link
Member

@quinchs quinchs commented Feb 12, 2022

Summary

This PR fixes the Channel property on interactions being null in dms as well as exposes a method called GetChannelAsync that will fetch the channel from rest or the cache.

To help on confusion or if the channel cannot be fetched, this pr also exposes a new property to IDiscordInteraction called IsDMInteraction, this can help with bots that have dm specific interactions.

@quinchs quinchs merged commit 7e1b8c9 into dev Feb 12, 2022
@quinchs quinchs deleted the fix/interaction-channel-null branch February 12, 2022 01:43
@jgoldshlag
Copy link

are you going to cut a new release with this fix?

@quinchs
Copy link
Member Author

quinchs commented Feb 12, 2022

are you going to cut a new release with this fix?

Yes, waiting on a few other things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants