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(PaginatedMessage): add method to update pages after response #584

Merged
merged 1 commit into from May 2, 2023

Conversation

killbasa
Copy link
Contributor

Adds a method to update page content after PaginatedMessage has run, allowing more interactivity when handling buttons.

Example:

run: async ({ handler }) => {
    const value = Math.floor(Math.random() * 10);

    await handler.updateCurrentPage({
        embeds: [
            new EmbedBuilder().setDescription(`${value}`)
        ]
    });
}

@favna favna force-pushed the update-page branch 3 times, most recently from 0f9a7bb to 0da28dd Compare April 27, 2023 16:32
@favna
Copy link
Member

favna commented May 2, 2023

@sapphiredev pack

@sapphiredev
Copy link

sapphiredev bot commented May 2, 2023

Heya @favna, I've started to run the deployment workflow on this PR at b444d5b. You can monitor the build here!

Copy link
Member

@favna favna left a comment

Choose a reason for hiding this comment

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

tested with https://github.com/favna/musical-giggle, works perfectly.

@favna favna merged commit db13068 into sapphiredev:main May 2, 2023
8 checks passed
@killbasa killbasa deleted the update-page branch May 2, 2023 16:41
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.

None yet

2 participants