forked from Fascinated/Bat
yes
This commit is contained in:
parent
65ba1d91ac
commit
92a0c23b49
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user