diff options
author | 2021-05-16 03:19:26 +0100 | |
---|---|---|
committer | 2021-05-16 03:19:26 +0100 | |
commit | 6885c85f7c02fec618265881f00f92738b64eabc (patch) | |
tree | 98158fa9a65bc8eb893d4155ef595a2f167f1827 | |
parent | chore: add 'valid' wording (diff) |
chore: use ctx.fetch_message
Co-authored-by: ToxicKidz <[email protected]>
-rw-r--r-- | bot/exts/evergreen/bookmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/bookmark.py b/bot/exts/evergreen/bookmark.py index 1f65f07c..c84446c5 100644 --- a/bot/exts/evergreen/bookmark.py +++ b/bot/exts/evergreen/bookmark.py @@ -97,7 +97,7 @@ class Bookmark(commands.Cog): if not target_message: if not ctx.message.reference: raise commands.UserInputError("You must either provide a valid message to bookmark, or reply to one.") - target_message = await ctx.channel.fetch_message(ctx.message.reference.message_id) + target_message = await ctx.fetch_message(ctx.message.reference.message_id) # Prevent users from bookmarking a message in a channel they don't have access to permissions = ctx.author.permissions_in(target_message.channel) |