From 8f70ce52ca2df1188d012931250d8fbf0d7074e2 Mon Sep 17 00:00:00 2001 From: ITOH Date: Fri, 11 Jun 2021 19:23:02 +0200 Subject: [PATCH] fix: message#tag discriminator formatting --- src/structures/message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/message.ts b/src/structures/message.ts index 74d807936..d005ddf4f 100644 --- a/src/structures/message.ts +++ b/src/structures/message.ts @@ -228,7 +228,7 @@ export async function createDiscordenoMessage(data: Message) { props.authorId = createNewProp(snowflakeToBigint(author.id)); props.isBot = createNewProp(author.bot || false); - props.tag = createNewProp(`${author.username}#${author.discriminator}`); + props.tag = createNewProp(`${author.username}#${author.discriminator.toString().padStart(4, "0")}`); // Discord doesnt give guild id for getMessage() so this will fill it in const guildIdFinal =