discord.py icon indicating copy to clipboard operation
discord.py copied to clipboard

Add support for getting and editing integration_types_config application field

Open Soheab opened this issue 9 months ago • 0 comments

Summary

This PR adds support for getting and editing the integration_types_config field for applications.

I exposed it as default_x_install_params properties instead of an object that parses it because I find the inner oauth2_install_params object very unnecessary.

Something to note, setting default_guild_install_x and not default_user_install_x will disable default_user_install_x and I'm not sure if discord.py should handle or tell the user that, if, where and how.

Relevant API Docs:

  • https://discord.com/developers/docs/change-log#march-18-2024-api-changes
  • https://discord.com/developers/docs/resources/application#application-object

Checklist

  • [x] If code changes were made then they have been tested.
    • [x] I have updated the documentation to reflect the changes.
  • [ ] This PR fixes an issue.
  • [x] This PR adds something new (e.g. new method or parameters).
  • [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • [ ] This PR is not a code change (e.g. documentation, README, ...)

Soheab avatar May 05 '24 17:05 Soheab