ygimenez / Pagination-Utils

A collection of methods to make message pagination with JDA easier.
GNU Lesser General Public License v2.1
27 stars 7 forks source link

Issue with README.md #24

Closed day-mon closed 3 years ago

day-mon commented 3 years ago

Something minor but

Example provided an extra parenthesis

ArrayList<Page> pages = new ArrayList<>();
MessageBuilder mb = new MessageBuilder();

//ADDING 10 PAGES TO THE LIST
for (int i = 0; i < 10; i++) {
    mb.clear();
    mb.setContent("This is entry Nº " + i);
    pages.add(new Page(PageType.TEXT), mb.build());
}

Should be corrected to

ArrayList<Page> pages = new ArrayList<>();
MessageBuilder mb = new MessageBuilder();

//ADDING 10 PAGES TO THE LIST
for (int i = 0; i < 10; i++) {
    mb.clear();
    mb.setContent("This is entry Nº " + i);
    pages.add(new Page(PageType.TEXT, mb.build());
}
ygimenez commented 3 years ago

Thanks for spotting that typo