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

Creating a channel with MANAGE_ROLES - 50013 #7187

Open
SamSanai opened this issue Sep 29, 2024 · 0 comments
Open

Creating a channel with MANAGE_ROLES - 50013 #7187

SamSanai opened this issue Sep 29, 2024 · 0 comments
Labels
bug synced Synced to internal tracker

Comments

@SamSanai
Copy link

Description

According to the changelog on, 22 January 2021 you require admin permissions or MANAGE_ROLES in the channel before you're able to set the MANAGE_ROLE permission.

But if you have another unrelated channel/category with the MANAGE_ROLE enabled, you're able to create a separate unrelated category/channel with the MANAGE_ROLE permission overwrites.

Permission overwrites in the guild channel creation endpoint are now validated against the permissions your bot has in the guild. Permission overwrites specified in the request body when creating guild channels will now require your bot to also have the permissions being applied. Setting MANAGE_ROLES permission in channel overwrites is only possible for guild administrators or users with MANAGE_ROLES as a permission overwrite in the channel.

Without admin permission you're unable to create a channel and have MANAGE_ROLE enabled for the bot itself, I'm trying to avoid having to tell my users to have admin permissions enabled but with this changelog I don't have a choice, is this the intended behaviour even when making channels?

Steps to Reproduce

  • Give the bot just MANAGE_CHANNELS permission
  • Create a channel with the MANAGE_ROLE permission overwrite for the bot (Throws 50013)
  • Give the bot ADMINISTRATOR and repeat step 2 (Creates the channel)
  • Take away ADMINISTRATOR and repeat step 2 (Creates the channel)
  • Delete the channels and repeat step 2 (Throws 50013)

Expected Behavior

When you remove the ADMINISTRATOR permission, it shouldn't be able to make a channel with the MANAGE_ROLE permission, but it does.

Current Behavior

It makes the channels even though it doesn't have MANAGE_ROLE permissions or ADMINISTRATOR permissions.

Screenshots/Videos

50013.issue.mp4

Client and System Information

Discord.js - 14.16.2

@SamSanai SamSanai added the bug label Sep 29, 2024
@lsdimagine lsdimagine added the synced Synced to internal tracker label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug synced Synced to internal tracker
Projects
None yet
Development

No branches or pull requests

2 participants