Make that else
This commit is contained in:
parent
42bb858134
commit
59822e18fd
|
|
@ -49,7 +49,7 @@ module.exports = (interaction, client, bvs) => {
|
||||||
delete global.purchaseConfirmations[interaction.user.id];
|
delete global.purchaseConfirmations[interaction.user.id];
|
||||||
return interaction.reply({ content: `Cancelled. You can either choose a different DID from the latest run of \`/searchnumbers\` or start a new search by running \`/searchnumbers\` again.`, ephemeral: true });
|
return interaction.reply({ content: `Cancelled. You can either choose a different DID from the latest run of \`/searchnumbers\` or start a new search by running \`/searchnumbers\` again.`, ephemeral: true });
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (!global.tempPurchasableDIDs || !global.tempPurchasableDIDs[interaction.user.id]) {
|
if (!global.tempPurchasableDIDs || !global.tempPurchasableDIDs[interaction.user.id]) {
|
||||||
return interaction.reply({ content: `You must provide a choice from the latest run of \`/searchnumbers\`. Use \`/searchnumbers\` to see available DIDs and their corresponding choices.`, ephemeral: true });
|
return interaction.reply({ content: `You must provide a choice from the latest run of \`/searchnumbers\`. Use \`/searchnumbers\` to see available DIDs and their corresponding choices.`, ephemeral: true });
|
||||||
|
|
@ -77,4 +77,5 @@ module.exports = (interaction, client, bvs) => {
|
||||||
console.error("Error fetching premium DIDs:", error);
|
console.error("Error fetching premium DIDs:", error);
|
||||||
interaction.reply({ content: `There was an error fetching your DID. Please try again later.`, ephemeral: true });
|
interaction.reply({ content: `There was an error fetching your DID. Please try again later.`, ephemeral: true });
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue