discord / discord-api-docs

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

`app_permissions` does not update sometimes #6461

Closed redstonekasi closed 11 months ago

redstonekasi commented 1 year ago

Description

The app_permissions field on interactions does not update sometimes, this seems to happen when updating the permissions for an old interaction, though I'm not sure whether that's really the cause.

Steps to Reproduce

  1. Get an interaction response
  2. Pray that app_permissions is correct.

Expected Behavior

app_permissions should be updated with the integration's permissions correctly.

Current Behavior

app_permissions should be updated with the integration's permissions, it is, but only sometimes. Removing the integration and adding it again fixes the issue, even changing the permissions after that works correctly.

Screenshots/Videos

No response

Client and System Information

OceanicJS 1.80, Debian 11

mbialecka commented 12 months ago

Does the app have the bot scope in the server? Do you have an example of the actually returned permissions value and the expected permissions value?

redstonekasi commented 11 months ago

I think I may have missed a channel override, I'll close this for now unless I encounter it again.