@@ -146,9 +146,11 @@ async def on_command(self, ctx: commands.Context[BotT]):
146146 name = f"{ ctx .author } " ,
147147 icon_url = f"{ ctx .author .avatar or ctx .author .default_avatar } " ,
148148 ),
149- description = escaped_cmd_text
150- if len (escaped_cmd_text ) <= 4095
151- else escaped_cmd_text [:2044 ] + "..." ,
149+ description = (
150+ escaped_cmd_text
151+ if len (escaped_cmd_text ) <= 4095
152+ else escaped_cmd_text [:2044 ] + "..."
153+ ),
152154 fields = [
153155 dict (
154156 name = "\u200b " ,
@@ -232,9 +234,11 @@ async def on_command(self, ctx: commands.Context[BotT]):
232234 if is_unknown_error
233235 else "Failed ❌"
234236 ),
235- color = constants .UNKNOWN_COMMAND_ERROR_COLOR
236- if is_unknown_error
237- else constants .KNOWN_COMMAND_ERROR_COLOR ,
237+ color = (
238+ constants .UNKNOWN_COMMAND_ERROR_COLOR
239+ if is_unknown_error
240+ else constants .KNOWN_COMMAND_ERROR_COLOR
241+ ),
238242 )
239243 ),
240244 attachments = invocation_log_message .attachments
@@ -536,12 +540,14 @@ async def eval(self, ctx: commands.Context[BotT], code: CodeBlock):
536540 ),
537541 color = int (self .theme_color ),
538542 ),
539- file = discord .File (
540- io .StringIO (repr (eval_output )), # type: ignore
541- filename = f"eval_output_{ datetime .datetime .now ().strftime ('%Y-%m-%d_%H-%M-%S' )} .txt" ,
542- )
543- if len (eval_output ) > 4096
544- else None ,
543+ file = (
544+ discord .File (
545+ io .StringIO (repr (eval_output )), # type: ignore
546+ filename = f"eval_output_{ datetime .datetime .now ().strftime ('%Y-%m-%d_%H-%M-%S' )} .txt" ,
547+ )
548+ if len (eval_output ) > 4096
549+ else None
550+ ),
545551 )
546552
547553 @is_bot_manager ()
0 commit comments