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

Support editing message (paginate / display) by message id #28

Open
3 tasks done
JellyBrick opened this issue Sep 20, 2021 · 0 comments
Open
3 tasks done

Support editing message (paginate / display) by message id #28

JellyBrick opened this issue Sep 20, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers module: menu Menu module

Comments

@JellyBrick
Copy link

JellyBrick commented Sep 20, 2021

Issue Checklist

  • I have checked for similar issues on the Issue tracker
  • I have updated to the latest version of JDA-Chewtils.
  • I have checked the branches or the maintainer's PRs for upcoming features and updates.

Affected Modules

Menu

Description

example: Paginator.java

public void paginate(MessageChannel channel, long messageId, int pageNum)
{
    if(pageNum<1)
        pageNum = 1;
    else if (pageNum>pages)
        pageNum = pages;
    Message msg = renderPage(pageNum);
    initialize(channel.editMessageById(messageId, msg), pageNum);
}
@JellyBrick JellyBrick changed the title Support edit message (paginate / display) with message id Support editing message (paginate / display) by message id Sep 20, 2021
@Chew Chew added enhancement New feature or request good first issue Good for newcomers labels Sep 20, 2021
@Chew Chew added the module: menu Menu module label Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers module: menu Menu module
Projects
None yet
Development

No branches or pull requests

2 participants