aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities/suicide.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utilities/suicide.ts')
-rw-r--r--src/commands/utilities/suicide.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts
index 05f8d47..641f7ec 100644
--- a/src/commands/utilities/suicide.ts
+++ b/src/commands/utilities/suicide.ts
@@ -1,5 +1,5 @@
import { AllowedMentions, BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
-import { MessageEmbed } from 'discord.js';
+import { Message, MessageEmbed } from 'discord.js';
export default class TemplateCommand extends BushCommand {
public constructor() {
@@ -46,8 +46,8 @@ export default class TemplateCommand extends BushCommand {
return (
// If the original message was a reply -> imitate it
- !message.util.isSlashMessage(message) && message.reference?.messageId && message.guild && message.channel
- ? await message.channel.messages.fetch(message.reference!.messageId!).then(async (message1) => {
+ !message.util.isSlashMessage(message) && (message as Message).reference?.messageId && message.guild && message.channel
+ ? await message.channel.messages.fetch((message as Message).reference!.messageId!).then(async (message1) => {
await message1.reply({
embeds: [suicideEmbed],
allowedMentions: AllowedMentions.users(),