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

more options for buttons #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

more options for buttons #22

wants to merge 1 commit into from

Conversation

ThySeth
Copy link

@ThySeth ThySeth commented May 26, 2022

All the new stuff below seems to work properly as far as I can tell. I did my best at optimizing everything, I probably missed some stuff though.

  1. "deleteButton", "firstButton", & "lastButton" changed from Booleans to Objects containing "enable" & "emoji".
    a. Each extended button can be enabled individually and function as intended on your messages
    b. "emoji" overrides the default like before
    c. "extendedButtons" still needs to be set to 'true' for these to work

  2. "showPageNumbers" has the option of changing from content to footer by specifying {footer: true} rather than a straight Boolean.

Example:
EmbedPaginator.createPaginationEmbed(msg, embeds, {
showPageNumbers: {footer: true},
extendedButtons: true,
firstButton: {enable: true, emoji: "🔁"},
lastButton: {enable: false},
deleteButton: {enable: true}
});

All the new stuff below seems to work properly as far as I can tell. I did my best at optimizing everything, I probably missed some stuff though.

1. "deleteButton", "firstButton", & "lastButton" changed from Booleans to Objects containing "enable" & "emoji".
   a. Each extended button can be enabled individually and function as intended on your messages
   b. "emoji" overrides the default like before
   c. "extendedButtons" still needs to be set to 'true' for these to work

2. "showPageNumbers" has the option of changing from content to footer by specifying {footer: true} rather than a straight Boolean.

Example:
              EmbedPaginator.createPaginationEmbed(msg, embeds, {
                showPageNumbers: {footer: true},
                extendedButtons: true,
                firstButton: {enable: true, emoji: "🔁"},
                lastButton: {enable: false},
                deleteButton: {enable: true}
              });
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.

1 participant