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 possible ClassCastException when removing reactions in threads #2069

Merged

Conversation

RoanH
Copy link
Contributor

@RoanH RoanH commented Mar 26, 2022

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: #2068

Description

This is a fix for issue #2068, I had another look and noticed that in other places we get the permission container from the guild channel, so I modified the logic here to do the same. This should be fine as we already check that the channel is from a guild since we cannot remove reactions in non-guild channels. I tested that this resolves the issue I was having.

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.

2 participants