@@ -146,9 +146,11 @@ async def on_command(self, ctx: commands.Context[BotT]):
146
146
name = f"{ ctx .author } " ,
147
147
icon_url = f"{ ctx .author .avatar or ctx .author .default_avatar } " ,
148
148
),
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
+ ),
152
154
fields = [
153
155
dict (
154
156
name = "\u200b " ,
@@ -232,9 +234,11 @@ async def on_command(self, ctx: commands.Context[BotT]):
232
234
if is_unknown_error
233
235
else "Failed ❌"
234
236
),
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
+ ),
238
242
)
239
243
),
240
244
attachments = invocation_log_message .attachments
@@ -536,12 +540,14 @@ async def eval(self, ctx: commands.Context[BotT], code: CodeBlock):
536
540
),
537
541
color = int (self .theme_color ),
538
542
),
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
+ ),
545
551
)
546
552
547
553
@is_bot_manager ()
0 commit comments