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 {
|
public class LeaveCommand extends AbstractMusicCommand {
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean needAdmin() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isEnabled() {
|
public boolean isEnabled() {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -188,11 +188,6 @@ public class SlashCommandContext implements CommandContext {
|
|||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (command.needAdmin() && !UserFunction.isAdmin(member)) {
|
|
||||||
replyEphemeral("You are not powerful enough, scrub");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (command.canBeExecutedBy(guild, member)) {
|
if (command.canBeExecutedBy(guild, member)) {
|
||||||
command.execute(this);
|
command.execute(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user