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()) {
|
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user