yes
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 47s

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

View File

@ -64,15 +64,10 @@ public abstract class BatCommand {
if (info.isUserInstall()) {
integrationTypes.add(IntegrationType.USER_INSTALL);
}
List<InteractionContextType> 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());
}
/**