Hide everyone role in user card and prevent overflowing of role bubbles

This commit is contained in:
Jeremy Zhang
2018-03-01 07:09:09 +00:00
parent cc0a0bf3bb
commit b61d249fe6
2 changed files with 4 additions and 0 deletions

View File

@ -803,6 +803,9 @@
$("#usercard .role .roles").empty();
for (var j = 0; j < data.roles.length; j++) {
var role = data.roles[j];
if (role.id == guild_id) {
continue;
}
var color = null;
if (role.color) {
color = "#" + role.color.toString(16);