From 29191e2c05d6ff2986575faa0c67d525680d1474 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Mon, 23 Jan 2023 20:08:29 -0500 Subject: [PATCH] Improve /setupinfo --- modules/functions.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/functions.js b/modules/functions.js index 38fcb90..4545e92 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -238,16 +238,11 @@ const functions = { if (thisGuildInfo != undefined) { let thisGuildInfoString = ""; if (thisGuildInfo.treeMessageId != "") { - thisGuildInfoString += `Tree Message ID: ${thisGuildInfo.treeMessageId}\n`; - } - if (thisGuildInfo.treeChannelId != "") { - thisGuildInfoString += `Tree Channel ID: ${thisGuildInfo.treeChannelId}\n`; + thisGuildInfoString += `Tree Message: https://discord.com/channels/${guildId}/${thisGuildInfo.treeChannelId}/${thisGuildInfo.treeMessageId}\n`; + } if (thisGuildInfo.rankMessageId != "") { - thisGuildInfoString += `Rank Message ID: ${thisGuildInfo.rankMessageId}\n`; - } - if (thisGuildInfo.rankChannelId != "") { - thisGuildInfoString += `Rank Channel ID: ${thisGuildInfo.rankChannelId}\n`; + thisGuildInfoString += `Rank Message: https://discord.com/channels/${guildId}/${thisGuildInfo.rankChannelId}/${thisGuildInfo.rankMessageId}\n`; } if (thisGuildInfo.treeHeight != "") { thisGuildInfoString += `Tree Height: ${thisGuildInfo.treeHeight}\n`;