This commit is contained in:
GregTCLTK 2020-02-15 13:45:36 +01:00
parent e047a9a5ee
commit 2f14e96228
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 2 additions and 2 deletions

View file

@ -126,8 +126,7 @@ public class Hadder {
new EchoCommand(),
new ServerStatsCommand(),
new ProfileCommand(),
new CodeCommand(),
new RoleAssignmentCommand()), config, helpCommand);
new CodeCommand()), config, helpCommand);
builder.addEventListeners(
new MentionListener(rethink),

View file

@ -28,6 +28,7 @@ public class RoleAssignmentCommand implements Command {
@Override
public void executed(String[] args, CommandEvent e) {
//TODO: THIS LOL
if (e.getGuild().getSelfMember().hasPermission(Permission.MANAGE_ROLES)) {
} else e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue();