aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/rule.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-08 22:19:24 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-08 22:19:24 -0400
commit820f55fc9bc8a4540666c03a414d68bcfbead4fc (patch)
treec6f42825fd5e13ee0d78c07a4533ea83c0f150f9 /src/commands/moulberry-bush/rule.ts
parent86be44fc0485085a77b7945a22f579e6b3a5b510 (diff)
downloadtanzanite-820f55fc9bc8a4540666c03a414d68bcfbead4fc.tar.gz
tanzanite-820f55fc9bc8a4540666c03a414d68bcfbead4fc.tar.bz2
tanzanite-820f55fc9bc8a4540666c03a414d68bcfbead4fc.zip
fix breaking changes
Diffstat (limited to 'src/commands/moulberry-bush/rule.ts')
-rw-r--r--src/commands/moulberry-bush/rule.ts8
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}>`,