Skip to content

Commit 519556a

Browse files
committed
Enhanced JavaDocs;
Added ShardManager as a possible button handler;
1 parent 5a1ae67 commit 519556a

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/github/ygimenez/method

1 file changed

+2
-2
lines changed

src/main/java/com/github/ygimenez/method/Pages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class Pages {
4141
* <br>
4242
* Before calling this method again, you must use {@link #deactivate(JDA)} to
4343
* remove current handler, else this method will throw
44-
* {@link InvalidStateException}.
44+
* {@link AlreadyActivatedException}.
4545
*
4646
* @param api The bot's {@link JDA} object.
4747
* @throws AlreadyActivatedException Thrown if there's a handler already set.
@@ -73,7 +73,7 @@ public static void deactivate(JDA api) {
7373
* <br>
7474
* Before calling this method again, you must use
7575
* {@link #deactivate(ShardManager)} to remove current handler, else this method
76-
* will throw {@link InvalidStateException}.
76+
* will throw {@link AlreadyActivatedException}.
7777
*
7878
* @param manager The bot's {@link ShardManager} object.
7979
* @throws AlreadyActivatedException Thrown if there's a handler already set.

0 commit comments

Comments
 (0)