From 820f55fc9bc8a4540666c03a414d68bcfbead4fc Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 8 Jul 2021 22:19:24 -0400 Subject: fix breaking changes --- src/commands/moulberry-bush/rule.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands') diff --git a/src/commands/moulberry-bush/rule.ts b/src/commands/moulberry-bush/rule.ts index f8d312f..f2e0911 100644 --- a/src/commands/moulberry-bush/rule.ts +++ b/src/commands/moulberry-bush/rule.ts @@ -134,18 +134,18 @@ export default class RuleCommand extends BushCommand { async function respond(): Promise { if (!user) { // If the original message was a reply -> imitate it - (message as BushMessage).reference?.messageID && !message.util.isSlash - ? await message.channel.messages.fetch((message as BushMessage).reference.messageID).then(async (message) => { + (message as BushMessage).reference?.messageId && !message.util.isSlash + ? await message.channel.messages.fetch((message as BushMessage).reference.messageId).then(async (message) => { await message.util.reply({ embeds: [rulesEmbed], allowedMentions: AllowedMentions.users() }); }) : await message.util.send({ embeds: [rulesEmbed], allowedMentions: AllowedMentions.users() }); } else { - return (message as BushMessage).reference?.messageID && !message.util.isSlash + return (message as BushMessage).reference?.messageId && !message.util.isSlash ? await message.util.send({ content: `<@!${user.id}>`, embeds: [rulesEmbed], allowedMentions: AllowedMentions.users(), - reply: { messageReference: (message as BushMessage).reference.messageID } + reply: { messageReference: (message as BushMessage).reference.messageId } }) : await message.util.send({ content: `<@!${user.id}>`, -- cgit