This commit is contained in:
GregTCLTK 2020-02-08 03:19:35 +01:00
parent 2419033d09
commit 4a878d1b50
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 4 additions and 2 deletions

View file

@ -27,7 +27,6 @@ import org.json.JSONObject;
import java.lang.reflect.Field;
import java.util.NoSuchElementException;
public class Rethink {
private RethinkDB r = RethinkDB.r;
private Connection conn;
@ -191,5 +190,4 @@ public class Rethink {
}
r.table("user").get(user.getId()).update(object.toMap()).run(conn);
}
}

View file

@ -20,13 +20,17 @@ import com.bbn.hadder.commands.Command;
import com.bbn.hadder.commands.CommandEvent;
import com.bbn.hadder.core.Perm;
import com.bbn.hadder.core.Perms;
import com.bbn.hadder.utils.MessageEditor;
import net.dv8tion.jda.api.Permission;
@Perms(Perm.MANAGE_ROLES)
public class RoleAssignmentCommand implements Command {
@Override
public void executed(String[] args, CommandEvent e) {
if (e.getGuild().getSelfMember().hasPermission(Permission.MANAGE_ROLES)) {
} else e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue();
}
@Override