fix help not working without a guild

This commit is contained in:
Lee 2024-07-05 23:15:29 +01:00
parent 29d3fe3701
commit 650556079b

@ -50,9 +50,6 @@ 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 (event.getMember() == null) {
return;
}
if (!event.getComponentId().startsWith("help")) { if (!event.getComponentId().startsWith("help")) {
return; return;
} }