Skip to content

Add support for launch_activity interaction response #10193

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

Merged
merged 3 commits into from
Jul 2, 2025

Conversation

Joosemi02
Copy link
Contributor

Summary

Activities can now be launched in response to interactions using the LAUNCH_ACTIVITY (type 12) interaction callback type for APPLICATION_COMMAND, MESSAGE_COMPONENT, and MODAL_SUBMIT interaction types.
https://discord.com/developers/docs/change-log#recent-api-updates

Checklist

  • If code changes were made then they have been tested.
    • [/] I have updated the documentation to reflect the changes. (I added docstrings)
  • This PR fixes an issue.
  • 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, ...)

@Joosemi02
Copy link
Contributor Author

While I know that Activities are out of scope, I think this allows for compatibility with many bots that just want to have a command to launch an Activity and that way they can do it directly from the library.

I tested it and it works just fine launching the activity.

I found a thread about support for Entry Point Command (⁠bikeshedding⁠ > Entry Point Command) but it doesn't necessarily need to be added for this to work

Copy link
Owner

@Rapptz Rapptz left a comment

Choose a reason for hiding this comment

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

This is fine, it's just missing the .. versionadded:: 2.6 string in the method docstring.

@Rapptz Rapptz merged commit 59546a4 into Rapptz:master Jul 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants