This commit is contained in:
Lee 2024-07-10 06:00:40 +01:00
parent 96e7518f72
commit d6175b3f92

@ -67,7 +67,7 @@ public abstract class BatCommand {
} }
info = new InternalCommandInfo(getClass().getAnnotation(CommandInfo.class)); info = new InternalCommandInfo(getClass().getAnnotation(CommandInfo.class));
commandData = new CommandDataImpl(info.getName(), info.getDescription()) commandData = new CommandDataImpl(info.getName(), info.getDescription())
.setDefaultPermissions(DefaultMemberPermissions.enabledFor(info.getPermissions())) // .setDefaultPermissions(DefaultMemberPermissions.enabledFor(info.getPermissions()))
.setIntegrationTypes(info.isUserInstall() ? .setIntegrationTypes(info.isUserInstall() ?
EnumSet.of(IntegrationType.USER_INSTALL) : EnumSet.of(IntegrationType.USER_INSTALL) :
EnumSet.of(IntegrationType.GUILD_INSTALL) EnumSet.of(IntegrationType.GUILD_INSTALL)