Remove admin check for slash commands
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user