trivia: make trivia api limit formatted clearly

This commit is contained in:
Ayden Jahola 2024-09-05 21:03:09 +01:00
parent d3ac6fad8d
commit 70ac364608
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742

View file

@ -156,7 +156,7 @@ module.exports = {
console.error("Error executing trivia command:", error); console.error("Error executing trivia command:", error);
if (error.response && error.response.status === 429) { if (error.response && error.response.status === 429) {
await interaction.reply({ await interaction.reply({
content: `<@${userId}> The trivia API rate limit has been exceeded. Please try again later.`, content: `<@${userId}> The trivia API rate limit has been exceeded. Please try in 5 seconds.`,
ephemeral: true, ephemeral: true,
}); });
} else { } else {