discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

`context` and `authorizing_integration_owners` missing on incoming interactions

Open plun1331 opened this issue 2 years ago • 1 comments

Description

context and authorizing_integration_owners are missing on incoming slash command interactions if the user has not authorized the application.

Note that this may not be isolated to slash commands, I have not tested other interactions

Steps to Reproduce

  • Create a slash command
  • Add the bot to a guild (but not your individual user account)
  • Run the command, keys are missing
  • Authorize the bot to your user account
  • Run the command again, keys are present

Expected Behavior

Keys should be sent regardless of where the application is installed

Current Behavior

Keys are missing when only installed to the guild

Screenshots/Videos

No response

Client and System Information

  • Python v3.12.1-final
  • py-cord dev version 6cdb3e3
  • aiohttp v3.9.3
  • system info: Linux 5.4.0-166-generic # 183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023

plun1331 avatar Mar 24 '24 19:03 plun1331

I am also experiencing this issue, however it appears that I do not receive authorizing_integration_owners when a command only has the 0 (guild) integration type. If this command is run in a guild, the authorizing_integration_owners field is undefined. Using Oceanic v1.10.2.

TheFallenSpirit avatar Apr 25 '24 06:04 TheFallenSpirit

Should be fixed now

yonilerner avatar Apr 29 '24 22:04 yonilerner