From 03c546d0324db112b802327462cfeb9b466ea70f Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 9 Dec 2019 22:13:42 +0100 Subject: Improve default title value and log message The title now defaults to Bookmark and is logged surrounded by single quotes to make it clear which part is the title. --- bot/seasons/evergreen/bookmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/seasons/evergreen/bookmark.py b/bot/seasons/evergreen/bookmark.py index 0c720e7e..f4d9b1b9 100644 --- a/bot/seasons/evergreen/bookmark.py +++ b/bot/seasons/evergreen/bookmark.py @@ -20,7 +20,7 @@ class Bookmark(commands.Cog): self, ctx: commands.Context, target_message: discord.Message, - *, title: str = None + *, title: str = "Bookmark" ) -> None: """Send the author a link to `target_message` via DMs.""" log.info(f"{ctx.author} bookmarked {target_message.jump_url} with title {title}") -- cgit v1.2.3