Add wrapping of page ends in queue command

This feature wraps both page ends, meaning that users can jump from the
first page to the last page, using the previous page reaction,
while using the next page button on the last page brings you to the
first page.

Resolves #233.
This commit is contained in:
MichailiK 2019-10-15 18:33:32 +02:00
parent 235af8c8c6
commit a501b00ab7

View file

@ -57,6 +57,7 @@ public class QueueCmd extends MusicCommand
.waitOnSinglePage(false)
.useNumberedItems(true)
.showPageNumbers(true)
.wrapPageEnds(true)
.setEventWaiter(bot.getWaiter())
.setTimeout(1, TimeUnit.MINUTES);
}