mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Fix message author fails when Titan is nicknamed
This commit is contained in:
parent
8c414247b9
commit
2d969659ec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user