From a7f4a36c12e6b4aa0629dabdeaa34ad683a5935e Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 25 Jun 2024 12:18:07 +0100 Subject: [PATCH] make #1 and userfeed commands guild only --- .../scoresaber/command/numberone/NumberOneFeedCommand.java | 1 + .../scoresaber/command/userfeed/ClearUsersSubCommand.java | 2 +- .../features/scoresaber/command/userfeed/UserFeedCommand.java | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/features/scoresaber/command/numberone/NumberOneFeedCommand.java b/src/main/java/cc/fascinated/bat/features/scoresaber/command/numberone/NumberOneFeedCommand.java index e6624e4..3e4e066 100644 --- a/src/main/java/cc/fascinated/bat/features/scoresaber/command/numberone/NumberOneFeedCommand.java +++ b/src/main/java/cc/fascinated/bat/features/scoresaber/command/numberone/NumberOneFeedCommand.java @@ -25,6 +25,7 @@ public class NumberOneFeedCommand extends BatCommand { super.setDescription("ScoreSaber #1 score feed commands"); super.setCommandData(new CommandDataImpl(this.getName(), this.getDescription()) + .setGuildOnly(true) .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)) ).setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.MANAGE_SERVER)) diff --git a/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/ClearUsersSubCommand.java b/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/ClearUsersSubCommand.java index 33c4b7a..92e627b 100644 --- a/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/ClearUsersSubCommand.java +++ b/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/ClearUsersSubCommand.java @@ -22,7 +22,7 @@ public class ClearUsersSubCommand extends BatSubCommand { private final GuildService guildService; @Autowired - public ClearUsersSubCommand(GuildService guildService, UserService userService) { + public ClearUsersSubCommand(GuildService guildService) { this.guildService = guildService; } diff --git a/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/UserFeedCommand.java b/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/UserFeedCommand.java index b8d389c..57d4563 100644 --- a/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/UserFeedCommand.java +++ b/src/main/java/cc/fascinated/bat/features/scoresaber/command/userfeed/UserFeedCommand.java @@ -27,6 +27,7 @@ public class UserFeedCommand extends BatCommand { super.setDescription("ScoreSaber user score feed commands"); super.setCommandData(new CommandDataImpl(this.getName(), this.getDescription()) + .setGuildOnly(true) .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)) ).setDefaultPermissions(DefaultMemberPermissions.enabledFor(Permission.MANAGE_SERVER))