fix: respond if return is null

This commit is contained in:
zkldi
2022-12-22 18:48:27 +00:00
parent d11b96ec51
commit 8c43a2cafa
@@ -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 });