diff options
Diffstat (limited to 'src/commands/utilities/suicide.ts')
-rw-r--r-- | src/commands/utilities/suicide.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts index 9289b1c..31bdca0 100644 --- a/src/commands/utilities/suicide.ts +++ b/src/commands/utilities/suicide.ts @@ -47,8 +47,8 @@ export default class TemplateCommand extends BushCommand { return ( // If the original message was a reply -> imitate it - (message as BushMessage).reference?.messageId && !message.util.isSlash && message.guild && message.channel - ? await message.channel.messages.fetch((message as BushMessage).reference!.messageId!).then(async (message1) => { + !message.util.isSlashMessage(message) && message.reference?.messageId && message.guild && message.channel + ? await message.channel.messages.fetch(message.reference!.messageId!).then(async (message1) => { await message1.reply({ embeds: [suicideEmbed], allowedMentions: AllowedMentions.users(), target: message1 }); }) : await message.util.send({ embeds: [suicideEmbed], allowedMentions: AllowedMentions.users() }) |