Revxrsal / Lamp

A powerful, extendable, flexible yet simple to use commands annotation framework.
MIT License
171 stars 33 forks source link

Call JDAActor#checkInGuild only if this is required. #68

Closed bivashy closed 11 months ago

bivashy commented 11 months ago

I don't know if this is intended, but we cannot interact with bot in private messages, because JDAHandler registers condition that always calls JDAActor#checkinGuild(ExecutableCommand)

Also @GuildOnly annotation stays unused anywhere in jda module, so I decided to check if command has @GuildOnly annotation, and after that call JDAActor#checkinGuild(ExecutableCommand) rather that blindly calling this method.

Have a nice day!

Revxrsal commented 11 months ago

Good catch! Thanks.