Improve /setupinfo

This commit is contained in:
Skylar Grant 2023-01-23 20:08:29 -05:00
parent 02a5093a8b
commit 29191e2c05
1 changed files with 3 additions and 8 deletions

View File

@ -238,16 +238,11 @@ const functions = {
if (thisGuildInfo != undefined) { if (thisGuildInfo != undefined) {
let thisGuildInfoString = ""; let thisGuildInfoString = "";
if (thisGuildInfo.treeMessageId != "") { if (thisGuildInfo.treeMessageId != "") {
thisGuildInfoString += `Tree Message ID: ${thisGuildInfo.treeMessageId}\n`; thisGuildInfoString += `Tree Message: https://discord.com/channels/${guildId}/${thisGuildInfo.treeChannelId}/${thisGuildInfo.treeMessageId}\n`;
}
if (thisGuildInfo.treeChannelId != "") {
thisGuildInfoString += `Tree Channel ID: ${thisGuildInfo.treeChannelId}\n`;
} }
if (thisGuildInfo.rankMessageId != "") { if (thisGuildInfo.rankMessageId != "") {
thisGuildInfoString += `Rank Message ID: ${thisGuildInfo.rankMessageId}\n`; thisGuildInfoString += `Rank Message: https://discord.com/channels/${guildId}/${thisGuildInfo.rankChannelId}/${thisGuildInfo.rankMessageId}\n`;
}
if (thisGuildInfo.rankChannelId != "") {
thisGuildInfoString += `Rank Channel ID: ${thisGuildInfo.rankChannelId}\n`;
} }
if (thisGuildInfo.treeHeight != "") { if (thisGuildInfo.treeHeight != "") {
thisGuildInfoString += `Tree Height: ${thisGuildInfo.treeHeight}\n`; thisGuildInfoString += `Tree Height: ${thisGuildInfo.treeHeight}\n`;