mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 08:48:15 +03:00
fix: respond if return is null
This commit is contained in:
@@ -37,6 +37,13 @@ export async function handleIsCommand(
|
||||
await interaction[method]({ embeds: [response] });
|
||||
} else if (response !== null) {
|
||||
await interaction[method](response);
|
||||
} else {
|
||||
await interaction.reply({
|
||||
data: {
|
||||
content: "Done!",
|
||||
},
|
||||
ephemeral: true,
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
logger.error(`An error occured while executing a command.`, { command, err });
|
||||
|
||||
Reference in New Issue
Block a user