Clearer handling of first /compare

This commit is contained in:
Skylar Grant 2023-01-23 21:42:22 -05:00
parent e484bf9962
commit 14d46a8b29
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ const functions = {
},
compare(interaction) {
if (guildInfo[interaction.guildId] == undefined) {
return `Please reset the reference messages! (${interaction.guildId})`;
return strings.error.noGuild;
}
let treeHeight = parseFloat(guildInfo[interaction.guildId].treeHeight).toFixed(1);
if ((guildInfo[interaction.guildId].rankings.length > 0) && (treeHeight > 0)) {