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

Unhandled exception when activating library #44

Closed ghost closed 2 years ago

ghost commented 2 years ago

Checklist

Make sure that you've checked all the items below.

Library info

What libraries versions are you using.

Describe the bug

When activating the paginator, it gives me an UnhandledException due to InvalidHandlerException. When attempting to either add an exception to the method signature or surrounding with a try-catch, it gives me another error stating that the provided type is void.

Edit note: These errors appear in the IDE rather than the console. Won't let me start the bot.

ygimenez commented 2 years ago

Didn't have time to answer yet, but you're probably doing other operations before declaring a handler.

The error happens because the library needs the handler (either JDA or ShardManager) to be able to check for Emotes' validity.

ghost commented 2 years ago

Didn't have time to answer yet, but you're probably doing other operations before declaring a handler.

The error happens because the library needs the handler (either JDA or ShardManager) to be able to check for Emotes' validity.

Yeah, after sleeping I, unfortunately, realised the issue.