aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-10-03 18:47:42 +0200
committerGravatar GitHub <[email protected]>2021-10-03 18:47:42 +0200
commitd1bbfaf459b33b10e9fde4baa9e382317551c071 (patch)
tree032b395615b2fcf85332a0b30a06ecf81542b797
parentMerge pull request #785 from PythonTryHard/main (diff)
parentMerge 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
-rw-r--r--bot/exts/utilities/bookmark.py8
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