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

feat: Support for menu in interaction response #27

Merged
merged 14 commits into from
Jan 24, 2022

Conversation

DenverCoder1
Copy link
Collaborator

@DenverCoder1 DenverCoder1 commented Jan 17, 2022

Fixes #26

This PR allows menus to be sent in response to an interaction such as components and slash commands.

Differences between menus in message commands and slash commands:

pages.start(interaction=interaction) will be used in place of pages.start(ctx)

Ephemeral responses:

pages.start(interaction=interaction, ephemeral=True)

(Note: reaction menus cannot be send with ephemeral due to a Discord limitation)

Sending an initial message with interaction response:

await self.interaction.response.send_message(**kwargs)
return await self.interaction.original_message()

This version (1.4.0) can be tested early with

pip install -U git+https://github.com/DenverCoderOne/nextcord-ext-menus@interaction-response#egg=nextcord-ext-menus

@justt-jay
Copy link

justt-jay commented Jan 18, 2022

This change is going to work well, I'm excited about this.

Copy link
Contributor

@TAG-Epic TAG-Epic left a comment

Choose a reason for hiding this comment

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

Not tested

@DenverCoder1 DenverCoder1 changed the title Support for menu in interaction response feat: Support for menu in interaction response Jan 24, 2022
@DenverCoder1 DenverCoder1 merged commit 261b732 into nextcord:master Jan 24, 2022
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.

Support for sending menu in interaction response
3 participants