mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-10 10:43:06 +00:00
chore(bot): fixed remaining issues
This commit is contained in:
parent
7c2a99daf5
commit
77c4b75440
5 changed files with 29 additions and 17 deletions
|
@ -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}**.`,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue