chore(bot): fixed remaining issues

This commit is contained in:
Ahmad 2025-04-17 01:24:52 -04:00
parent 7c2a99daf5
commit 77c4b75440
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
5 changed files with 29 additions and 17 deletions

View file

@ -104,7 +104,17 @@ const command: SubcommandCommand = {
return;
}
await setCount(count);
try {
await setCount(count);
await interaction.editReply({
content: `Count has been set to **${count}**. The next number should be **${count + 1}**.`,
});
} catch (error) {
await interaction.editReply({
content: `Failed to set the count: ${error}`,
});
}
await interaction.editReply({
content: `Count has been set to **${count}**. The next number should be **${count + 1}**.`,
});