Skip to content

Commit

Permalink
update docstring of the delete bookmark callback
Browse files Browse the repository at this point in the history
  • Loading branch information
shtlrs committed Feb 27, 2023
1 parent 6047ad7 commit a6fe30a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bot/exts/utilities/bookmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,9 @@ async def _delete_bookmark_context_menu_callback(
message: discord.Message,
) -> None:
"""
Delete the Sir-Lancebot message that the command invocation is replying to.
The callback that will be invoked upon using the "Delete Bookmark" context menu command.
This command allows deleting any message sent by Sir-Lancebot in the user's DM channel with the bot.
The command invocation must be a reply to the message that is to be deleted.
This contains all the logic when it comes to deleting Sir-Lancebot's bookmark DM messages.
"""
if interaction.channel.type != discord.ChannelType.private:
raise commands.UserInputError("You can only run this command your own DMs!")
Expand Down

0 comments on commit a6fe30a

Please sign in to comment.