From 2d969659eca499972913cadd8a418bc330b44365 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sun, 10 Dec 2017 21:32:32 +0000 Subject: [PATCH] Fix message author fails when Titan is nicknamed --- webapp/titanembeds/static/js/embed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index dcc68b6..f569543 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -810,6 +810,7 @@ message.content = message.content.substring(usernamefield.length + 7); } message.author.username = usernamefield.split("#")[0]; + message.author.nickname = null; message.author.discriminator = usernamefield.split("#")[1]; } else if (message.author.bot && message.author.discriminator == "0000" && message.author.username.substring(message.author.username.length-5, message.author.username.length-4) == "#") { var namestr = message.author.username;