fix button interactions

This commit is contained in:
Lee 2024-07-04 15:52:43 +01:00
parent f7aea851b2
commit ee62eae519

@ -106,6 +106,9 @@ public class MovieSubCommand extends BatCommand implements EventListener {
@Override @Override
public void onButtonInteraction(BatGuild guild, @NonNull BatUser user, @NonNull ButtonInteractionEvent event) { public void onButtonInteraction(BatGuild guild, @NonNull BatUser user, @NonNull ButtonInteractionEvent event) {
if (guild == null) {
return;
}
Map<String, String> params = userCommands.get(user.getId()); Map<String, String> params = userCommands.get(user.getId());
if (params == null) { if (params == null) {
return; return;