diff options
Diffstat (limited to 'src/commands/moulberry-bush/rule.ts')
-rw-r--r-- | src/commands/moulberry-bush/rule.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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<unknown> { 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}>`, |