diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 01fa04c..f16e5ca 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -1202,8 +1202,10 @@ if (usr.avatar_url) { parent.find(".authoravatar").prop("src", usr.avatar_url); } + if (usr.roles) { + parent.attr("discord_userroles", usr.roles.join(" ")); + } parent.attr("discord_userid", usr.id); - parent.attr("discord_userroles", usr.roles.join(" ")); } collapse_messages(); }