diff options
| author | 2021-10-03 18:47:42 +0200 | |
|---|---|---|
| committer | 2021-10-03 18:47:42 +0200 | |
| commit | d1bbfaf459b33b10e9fde4baa9e382317551c071 (patch) | |
| tree | 032b395615b2fcf85332a0b30a06ecf81542b797 /bot/exts/utilities | |
| parent | Merge pull request #785 from PythonTryHard/main (diff) | |
| parent | Merge branch 'main' into better-bookmark-error-message (diff) | |
Merge pull request #890 from python-discord/better-bookmark-error-message
Give the bookmark command a better error message
Diffstat (limited to 'bot/exts/utilities')
| -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 | 
