Remove admin check for slash commands

This commit is contained in:
anthorob committed 2023-03-23 20:38:32 -04:00
1 parent 744abf204e
commit b2d1daf9c3
2 files changed
-10

No files matched your search

@@ -16,11 +16,6 @@ import netneutrality.utils.MusicUtils;
public class LeaveCommand extends AbstractMusicCommand {
@Override
public boolean needAdmin() {
return true;
}
@Override
public boolean isEnabled() {
return true;
@@ -188,11 +188,6 @@ public class SlashCommandContext implements CommandContext {
});
try {
if (command.needAdmin() && !UserFunction.isAdmin(member)) {
replyEphemeral("You are not powerful enough, scrub");
return;
}
if (command.canBeExecutedBy(guild, member)) {
command.execute(this);
}