From 42b39b83ec6fb593b655e8b36a88e5f135c94de0 Mon Sep 17 00:00:00 2001 From: AG_1436 <45149585+AG4lyf@users.noreply.github.com> Date: Mon, 9 Dec 2019 00:55:42 +0530 Subject: Changed how title behave when None --- bot/seasons/evergreen/bookmark.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bot') diff --git a/bot/seasons/evergreen/bookmark.py b/bot/seasons/evergreen/bookmark.py index 8d541ab6..10ea4fe9 100644 --- a/bot/seasons/evergreen/bookmark.py +++ b/bot/seasons/evergreen/bookmark.py @@ -17,13 +17,10 @@ class Bookmark(commands.Cog): @commands.command(name="bookmark", aliases=("bm", "pin")) async def bookmark(self, ctx: commands.Context, target_message: discord.Message, *, - title: str = "Bookmark") -> None: + title: str = None) -> None: """Send you a link to the provided message in DM.""" log.info(f"{ctx.author} bookmarked {target_message.jump_url} with hints {title}.") - if not title: - title = "No Title provided." - embed = discord.Embed( title=title, colour=Colours.soft_green, -- cgit v1.2.3