Commit bae7b79
Hot-fix FreeCommand ignoring messages from guild
After updating to JDA5, GuildMessageReceviedEvent was removed.
MessageReceivedEvent has to be used instead.
To "counter" this, one can use the isFromGuild method.
I use this method, but incorrect.
I should invert the if statemen; if the message is NOT from a guild, ignore.
This modification fixes the update that broke the help system.1 parent d14a7bc commit bae7b79
File tree
1 file changed
+1
-1
lines changed- application/src/main/java/org/togetherjava/tjbot/commands/free
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
0 commit comments