fix button interactions
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 49s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 49s
This commit is contained in:
parent
ee62eae519
commit
16e956d718
@ -52,7 +52,7 @@ public class HelpCommand extends BatCommand implements EventListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStringSelectInteraction(BatGuild guild, @NonNull BatUser user, @NonNull StringSelectInteractionEvent event) {
|
public void onStringSelectInteraction(BatGuild guild, @NonNull BatUser user, @NonNull StringSelectInteractionEvent event) {
|
||||||
if (guild == null || event.getMember() == null) {
|
if (event.getMember() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!event.getComponentId().startsWith("help")) {
|
if (!event.getComponentId().startsWith("help")) {
|
||||||
|
@ -106,9 +106,6 @@ 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;
|
||||||
|
@ -103,9 +103,6 @@ public class SeriesSubCommand 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user