diff options
| author | 2022-08-30 21:25:14 +0400 | |
|---|---|---|
| committer | 2022-08-30 21:25:14 +0400 | |
| commit | dedcef310a1cdf83d166633f8eda1480286505c0 (patch) | |
| tree | 340ff674f8d89a32b7c484bc7194a29c05167ec6 | |
| parent | Use buttons for bookmark command (diff) | |
Fix broken lines
| -rw-r--r-- | bot/exts/utilities/bookmark.py | 12 | 
1 files changed, 5 insertions, 7 deletions
| diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py index c8049783..689de015 100644 --- a/bot/exts/utilities/bookmark.py +++ b/bot/exts/utilities/bookmark.py @@ -39,9 +39,7 @@ class SendBookmark(discord.ui.View):      def __init__(          self, -        bookmark_function: Callable[ -            [discord.TextChannel, discord.Member, discord.Message, str], None -        ], +        bookmark_function: Callable[[discord.TextChannel, discord.Member, discord.Message, str], None],          author: discord.Member,          channel: discord.TextChannel,          target_message: discord.Message, @@ -64,9 +62,7 @@ class SendBookmark(discord.ui.View):          await self.bookmark_function(              self.channel, interaction.user, self.target_message          ) -        await interaction.response.send_message( -            "You have received a bookmark to that message.", ephemeral=True -        ) +        await interaction.response.send_message("You have received a bookmark to that message.", ephemeral=True)          self.clicked.append(interaction.user.id) @@ -80,7 +76,9 @@ class Bookmark(commands.Cog):      def build_bookmark_dm(target_message: discord.Message, title: str) -> discord.Embed:          """Build the embed to DM the bookmark requester."""          embed = discord.Embed( -            title=title, description=target_message.content, colour=Colours.soft_green +            title=title,  +            description=target_message.content,  +            colour=Colours.soft_green          )          embed.set_author(              name=target_message.author, | 
