forked from Fascinated/Bat
fix help not working without a guild
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user