Clearer handling of first /compare
This commit is contained in:
parent
e484bf9962
commit
14d46a8b29
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user