This commit is contained in:
Lee 2024-07-04 15:32:24 +01:00
parent 65ba1d91ac
commit 92a0c23b49

@ -64,15 +64,10 @@ public abstract class BatCommand {
if (info.isUserInstall()) { if (info.isUserInstall()) {
integrationTypes.add(IntegrationType.USER_INSTALL); integrationTypes.add(IntegrationType.USER_INSTALL);
} }
List<InteractionContextType> contextTypes = new ArrayList<>(); System.out.println(integrationTypes);
if (info.isGuildOnly()) {
contextTypes.add(InteractionContextType.GUILD);
} else {
contextTypes.addAll(InteractionContextType.ALL);
}
commandData = new CommandDataImpl(info.getName(), info.getDescription()) commandData = new CommandDataImpl(info.getName(), info.getDescription())
.setContexts(contextTypes) .setIntegrationTypes(integrationTypes)
.setIntegrationTypes(integrationTypes); .setGuildOnly(info.isGuildOnly());
} }
/** /**