mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: remove Promise.resolve() return and fix queue type
This commit is contained in:
1 parent
d5cc5b8741
commit
67e45729a3
23 files changed
+102
-117
No files matched your search
@@ -65,7 +65,7 @@ export const cannotSendMessageInChannel = async ({ interaction, executionId }: C
|
||||
logger.debug(
|
||||
'Sending ephemeral message in channel about insufficient permissions to send message in channel.'
|
||||
);
|
||||
return await interaction.editReply({
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setDescription(
|
||||
@@ -74,8 +74,6 @@ export const cannotSendMessageInChannel = async ({ interaction, executionId }: C
|
||||
.setColor(embedOptions.colors.warning)
|
||||
]
|
||||
});
|
||||
} else {
|
||||
return Promise.resolve();
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
|
||||
Reference in new issue
Block a user