From 92a0c23b4904fb5b4c7aa6f69e95016d1fecd9b2 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 15:32:24 +0100 Subject: [PATCH] yes --- .../java/cc/fascinated/bat/command/BatCommand.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/command/BatCommand.java b/src/main/java/cc/fascinated/bat/command/BatCommand.java index c4986a2..7884a03 100644 --- a/src/main/java/cc/fascinated/bat/command/BatCommand.java +++ b/src/main/java/cc/fascinated/bat/command/BatCommand.java @@ -64,15 +64,10 @@ public abstract class BatCommand { if (info.isUserInstall()) { integrationTypes.add(IntegrationType.USER_INSTALL); } - List contextTypes = new ArrayList<>(); - if (info.isGuildOnly()) { - contextTypes.add(InteractionContextType.GUILD); - } else { - contextTypes.addAll(InteractionContextType.ALL); - } + System.out.println(integrationTypes); commandData = new CommandDataImpl(info.getName(), info.getDescription()) - .setContexts(contextTypes) - .setIntegrationTypes(integrationTypes); + .setIntegrationTypes(integrationTypes) + .setGuildOnly(info.isGuildOnly()); } /**