diff options
author | 2021-10-03 14:07:25 +0100 | |
---|---|---|
committer | 2021-10-03 14:07:25 +0100 | |
commit | 9f07c20f8f2e78051ab9c0d31d45755921007156 (patch) | |
tree | a53fe0439305172b6fdb6eda1e6767dff6b3bcc5 | |
parent | Merge pull request #877 from python-discord/bug/875/emoji-offet-naive (diff) |
Give the bookmark command a better error message
-rw-r--r-- | bot/exts/utilities/bookmark.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py index 39d65168..a11c366b 100644 --- a/bot/exts/utilities/bookmark.py +++ b/bot/exts/utilities/bookmark.py @@ -98,7 +98,13 @@ class Bookmark(commands.Cog): """Send the author a link to `target_message` via DMs.""" 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.") + raise commands.UserInputError( + "You must either provide a valid message to bookmark, or reply to one." + "\n\nThe lookup strategy for a message is as follows (in order):" + "\n1. Lookup by '{channel ID}-{message ID}' (retrieved by shift-clicking on 'Copy ID')" + "\n2. Lookup by message ID (the message **must** have been sent after the bot last started)" + "\n3. Lookup by message URL" + ) target_message = ctx.message.reference.resolved # Prevent users from bookmarking a message in a channel they don't have access to |