Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement user installations #2177

Merged
merged 27 commits into from
Mar 5, 2025
Merged

Conversation

mplatypus
Copy link
Contributor

@mplatypus mplatypus commented Mar 3, 2025

Summary

Add User install support!

This PR allows for commands to be added to user installed applications.

Checklist

  • I have run nox and all the pipelines have passed.
  • I have made unittests according to the code I have added/modified/deleted.

Related issues

Closes #1952
Closes #2192

Copy link
Member

@davfsa davfsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly nitpicks, otherwise it looks really good!

@davfsa davfsa added the enhancement New feature or request label Mar 3, 2025
@davfsa
Copy link
Member

davfsa commented Mar 3, 2025

Two more things:

  • app_permissions is no longer optional. The typehint should be updated to reflect this, as well as the deserialization
  • Messages will now contain interaction_metadata if they were created by an interaction followup. Its fields can be found here
  • Remove Commands.dm_permissions and Messages.interaction. Next release will be 2.2.0, which allows slightly breaking behaviour

@davfsa davfsa changed the title Feature/user installs Implement user installations Mar 3, 2025
@davfsa davfsa self-requested a review March 5, 2025 00:48
davfsa
davfsa previously approved these changes Mar 5, 2025
Copy link
Member

@davfsa davfsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your amazing work on this!

@davfsa davfsa merged commit 1306a12 into hikari-py:master Mar 5, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Commands.dm_permissions and Messages.interaction
2 participants