discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.95k stars 1.26k forks source link

Cannot edit integration permissions despite having access to UI (Missing Access) #4944

Open MinnDevelopment opened 2 years ago

MinnDevelopment commented 2 years ago

Description

When I try to edit the permission of an integration in the Discord API server, I get a save button which is non-functional. I belive the API does a wrong permission check.

Steps to Reproduce

  1. Create a guild and invite an application
  2. Join with an alt account and set your permissions to Manage Server and Mange Roles (access to integration tab), but not Use Application Commands (shouldn't be required)
  3. Try setting permissions and save

Expected Behavior

The permissions should correctly be saved. (I think the UI is correct to only require manage server perms)

Current Behavior

The API returns a missing access error and the save button does nothing.

Screenshots/Videos

https://user-images.githubusercontent.com/18090140/168491506-79e78ee7-9ded-4dce-9214-762facd9df83.mp4

Client and System Information

Canary 128333 (b818ae7) Host 1.0.46 Windows 10 64-Bit (10.0.19043)

onerandomusername commented 2 years ago

You also need manage roles to modify permissions for app commands