Skip to content

Commit 6833fa1

Browse files
committed
Fix black formatting
1 parent 16a4ecc commit 6833fa1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cogs/modmail.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ async def snippet(self, ctx, *, name: str.lower = None):
149149
for i, names in enumerate(zip_longest(*(iter(sorted(self.bot.snippets)),) * 15)):
150150
description = format_description(i, names)
151151
embed = discord.Embed(color=self.bot.main_color, description=description)
152-
embed.set_author(name="Snippets", icon_url=self.bot.get_guild_icon(guild=ctx.guild, size=128))
152+
embed.set_author(
153+
name="Snippets", icon_url=self.bot.get_guild_icon(guild=ctx.guild, size=128)
154+
)
153155
embeds.append(embed)
154156

155157
session = EmbedPaginatorSession(ctx, *embeds)
@@ -180,7 +182,9 @@ async def snippet(self, ctx, *, name: str.lower = None):
180182
embed.set_author(name="Snippets", icon_url=self.bot.get_guild_icon(guild=ctx.guild, size=128))
181183

182184
for i, snippet in enumerate(sorted(self.bot.snippets.items())):
183-
embeds[i//10].add_field(name=snippet[0], value=return_or_truncate(snippet[1], 350), inline=False)
185+
embeds[i // 10].add_field(
186+
name=snippet[0], value=return_or_truncate(snippet[1], 350), inline=False
187+
)
184188

185189
session = EmbedPaginatorSession(ctx, *embeds)
186190
await session.run()

core/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ def return_or_truncate(text, max_length):
579579
return text
580580
return text[: max_length - 3] + "..."
581581

582+
582583
class AcceptButton(discord.ui.Button):
583584
def __init__(self, emoji):
584585
super().__init__(style=discord.ButtonStyle.gray, emoji=emoji)

0 commit comments

Comments
 (0)