Interaction Requests should include Channel Object #4813
Replies: 3 comments 4 replies
-
Given an application may receive multiple interactions per hour initiated from the same channel, this would cause serious inefficiency in communication. You should instead cache the channel metadata for a reasonable time. |
Beta Was this translation helpful? Give feedback.
-
Bots already receive their total permissions(including overwrites) in the channel the interaction was executed in See https://discord.com/developers/docs/resources/guild#guild-member-object permissions field |
Beta Was this translation helpful? Give feedback.
-
(First of all, duplicate of #3310) This would be a valuable addition, especially for bots that don't connect to the gateway. Caching permissions is not effective, because:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Interaction Data Structure:
https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data-structure
The problem is for some Conmands you would need to access Channel Name, Channel Type & Most importantly the Channel Permissions of the User (Bot). It would be better if such information is included in the Request so that Bots doesn’t need to make REST API calls again to fetch channel Information and / or store them for convenience and performance.
Beta Was this translation helpful? Give feedback.
All reactions