make #1 and userfeed commands guild only
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 44s

This commit is contained in:
Lee 2024-06-25 12:18:07 +01:00
parent 0f2c684300
commit a7f4a36c12
3 changed files with 3 additions and 1 deletions

@ -25,6 +25,7 @@ public class NumberOneFeedCommand extends BatCommand {
super.setDescription("ScoreSaber #1 score feed commands"); super.setDescription("ScoreSaber #1 score feed commands");
super.setCommandData(new CommandDataImpl(this.getName(), this.getDescription()) super.setCommandData(new CommandDataImpl(this.getName(), this.getDescription())
.setGuildOnly(true)
.addSubcommands(new SubcommandData("channel", "Edit the channel the score feed is sent in") .addSubcommands(new SubcommandData("channel", "Edit the channel the score feed is sent in")
.addOptions(new OptionData(OptionType.CHANNEL, "channel", "Set the channel to send the score feed in", false)) .addOptions(new OptionData(OptionType.CHANNEL, "channel", "Set the channel to send the score feed in", false))
).setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.MANAGE_SERVER)) ).setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.MANAGE_SERVER))

@ -22,7 +22,7 @@ public class ClearUsersSubCommand extends BatSubCommand {
private final GuildService guildService; private final GuildService guildService;
@Autowired @Autowired
public ClearUsersSubCommand(GuildService guildService, UserService userService) { public ClearUsersSubCommand(GuildService guildService) {
this.guildService = guildService; this.guildService = guildService;
} }

@ -27,6 +27,7 @@ public class UserFeedCommand extends BatCommand {
super.setDescription("ScoreSaber user score feed commands"); super.setDescription("ScoreSaber user score feed commands");
super.setCommandData(new CommandDataImpl(this.getName(), this.getDescription()) super.setCommandData(new CommandDataImpl(this.getName(), this.getDescription())
.setGuildOnly(true)
.addSubcommands(new SubcommandData("user", "Edit the users in the score feed") .addSubcommands(new SubcommandData("user", "Edit the users in the score feed")
.addOptions(new OptionData(OptionType.USER, "user", "Add or remove a user from the score feed", false)) .addOptions(new OptionData(OptionType.USER, "user", "Add or remove a user from the score feed", false))
).setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.MANAGE_SERVER)) ).setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.MANAGE_SERVER))