mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
Pre-commit fixed code
This commit is contained in:
parent
e70ba72358
commit
8671cbf8c0
3 changed files with 11 additions and 4 deletions
|
@ -168,7 +168,9 @@ class Info(commands.Cog):
|
|||
The size of each chunk for pagination.
|
||||
"""
|
||||
embed: discord.Embed = EmbedCreator.create_embed(
|
||||
embed_type=EmbedType.INFO, title=title, custom_color=discord.Color.blurple(),
|
||||
embed_type=EmbedType.INFO,
|
||||
title=title,
|
||||
custom_color=discord.Color.blurple(),
|
||||
)
|
||||
chunks: list[list[str]] = list(self._chunks(iter(items), chunk_size))
|
||||
|
||||
|
|
|
@ -371,7 +371,8 @@ class Snippets(commands.Cog):
|
|||
|
||||
if len(name) > 20 or any(char not in rules for char in name):
|
||||
await self.send_snippet_error(
|
||||
ctx, description="Snippet name must be alphanumeric (allows dashes only) and less than 20 characters.",
|
||||
ctx,
|
||||
description="Snippet name must be alphanumeric (allows dashes only) and less than 20 characters.",
|
||||
)
|
||||
return
|
||||
|
||||
|
@ -485,7 +486,8 @@ class Snippets(commands.Cog):
|
|||
|
||||
if status is None:
|
||||
await self.send_snippet_error(
|
||||
ctx, "No return value from locking the snippet. It may still have been locked.",
|
||||
ctx,
|
||||
"No return value from locking the snippet. It may still have been locked.",
|
||||
)
|
||||
return
|
||||
|
||||
|
|
|
@ -89,7 +89,10 @@ class EventHandler(commands.Cog):
|
|||
msg = f"<:tux_notify:1274504953666474025> **New support thread created** - help is appreciated!\n{thread.mention} by {owner_mention}"
|
||||
|
||||
embed = EmbedCreator.create_embed(
|
||||
embed_type=EmbedType.INFO, description=msg, custom_color=discord.Color.random(), hide_author=True,
|
||||
embed_type=EmbedType.INFO,
|
||||
description=msg,
|
||||
custom_color=discord.Color.random(),
|
||||
hide_author=True,
|
||||
)
|
||||
|
||||
general_chat = 1172245377395728467
|
||||
|
|
Loading…
Reference in a new issue