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

Properly handle MANAGE_THREAD permission for managing threads #2247

Merged
merged 3 commits into from
Sep 12, 2022

Conversation

DV8FromTheWorld
Copy link
Member

Pull Request Etiquette

Changes

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

Closes Issue: #2188
Replaces PR: #2190

Description

When calling ThreadChannel#getManager or ThreadChannel#delete it is currently checked if the user has the MANAGE_CHANNEL permission, but the permission actually required to manage or delete a thread is MANAGE_THREADS.

Additionally, when the bot owns the thread, it doesn't matter whether they have MANAGE_THREADS or not.

@DV8FromTheWorld DV8FromTheWorld merged commit 86aac44 into master Sep 12, 2022
@DV8FromTheWorld DV8FromTheWorld deleted the bug/thread-manage-perms branch September 12, 2022 03:51
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