From a34895de07a9fbaf42946b3ec91bec57d8774fce Mon Sep 17 00:00:00 2001 From: TehZombiJesus Date: Mon, 6 Sep 2021 05:10:47 -0400 Subject: [PATCH] Modified CommandPrivilege --- .../module/cmds/RoleCommand.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/RoleCommand.java b/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/RoleCommand.java index ae84ab32..8ed3240e 100644 --- a/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/RoleCommand.java +++ b/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/RoleCommand.java @@ -19,9 +19,11 @@ public class RoleCommand extends CommandModule { - private final DefinedQuery STAFF_ROLE = new DefinedQuery() { + private final DefinedQuery STAFF_ROLES = new DefinedQuery() { @Override - protected Query newQuery() { return bot.getRoles("Staff"); } + protected Query newQuery() { + return bot.getRoles("Senior Supporter", "Assistant", "Developer", "\uD83D\uDCBB Coding Wizard"); + } }; private final ArrayList SENIOR_SUPPORTER_ROLES = new ArrayList() {{ @@ -97,7 +99,7 @@ public String getDescription() { @Override public CommandPrivilege[] getCommandPrivileges() { return new CommandPrivilege[] { - CommandPrivilege.enable(STAFF_ROLE.query().first()) + CommandPrivilege.enable(STAFF_ROLES.query().first()) }; } @@ -142,9 +144,9 @@ public void onCommand(TextChannel channel, Member m, SlashCommandEvent e) { if(m.equals(member)) { e.replyEmbeds( new TechEmbedBuilder("Role Management - Error") - .error() - .text("You can't edit your own roles!") - .build() + .error() + .text("You can't edit your own roles!") + .build() ).queue(); return; } @@ -158,8 +160,8 @@ public void onCommand(TextChannel channel, Member m, SlashCommandEvent e) { ).queue(); RoleLogs.log( - new TechEmbedBuilder("Role Removed") - .error().text("Removed " + role.getAsMention() + " from " + member.getAsMention()) + new TechEmbedBuilder("Role Removed") + .error().text("Removed " + role.getAsMention() + " from " + member.getAsMention()) ); } else { TechDiscordBot.getGuild().addRoleToMember(member, role).complete();