From 03ca4262229573872d2004b5170775b391198136 Mon Sep 17 00:00:00 2001 From: Axle <95949634+AxleCat284@users.noreply.github.com> Date: Fri, 5 Jan 2024 21:52:35 -0500 Subject: [PATCH] 1.4.6.1 fix networthEmbed.js accepting profileid as username --- package.json | 4 ++-- src/discord/commands/embeds/networthEmbed.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1e0f506..6dfbcc3 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "skystats", - "version": "1.4.6", + "version": "1.4.6.1", "description": "A Hypixel Skyblock Metrics Bot For Discord.", - "changelog": "SkyStats Nightly\n1.4.6 Weight command beta\n+farmingWeight()\n+senitherWeight()\n+Sanitization for both\n+weightCommand.js\nNote that weight command is not finished and this is only the framework\n**TODO** Buttons and switching", + "changelog": "SkyStats Nightly\n1.4.6.1 Weight command beta\n+farmingWeight()\n+senitherWeight()\n+Sanitization for both\n+weightCommand.js\nNote that weight command is not finished and this is only the framework\n**TODO** Buttons and switching\nFix an error in 1.4.6 that caused networth to die", "main": "index.js", "scripts": { "start": "pm2 start --only SkyStats-Production", diff --git a/src/discord/commands/embeds/networthEmbed.js b/src/discord/commands/embeds/networthEmbed.js index fbf379c..bd65482 100644 --- a/src/discord/commands/embeds/networthEmbed.js +++ b/src/discord/commands/embeds/networthEmbed.js @@ -20,7 +20,7 @@ const EMOJIS = { PERSONAL_VAULT_ICON: `<:item_2654:1061455349338615859>`, MISC_ICON: `<:wheat:1059664236038590584>`, } -async function networthEmbed(embed_ID, uuid, username, profilename, networth) { +async function networthEmbed(embed_ID, uuid, profileid, username, profilename, networth) { if (embed_ID === `totals_embed`) { return { color: 0xffa600,