File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,10 @@ async def handle_command(
187
187
else :
188
188
await ctx .channel .typing ()
189
189
try :
190
- r : pxl_object .PxlObject = await wait_for (function (data , t ), timeout = 2.5 + extra_time )
190
+ r : pxl_object .PxlObject = await wait_for (function (data , t ), timeout = 2.2 + extra_time )
191
191
except TimeoutError :
192
192
return await ctx .send (
193
- discord .Embed (
193
+ embed = discord .Embed (
194
194
title = "An error occured during command execution:" ,
195
195
description = ":x: The API took too long to respond. Please try again later (It is likely down)." ,
196
196
color = discord .Color .red (),
@@ -211,14 +211,14 @@ async def handle_command(
211
211
)
212
212
if len (r .error ) > 2000 :
213
213
return await ctx .send (
214
- discord .Embed (
214
+ embed = discord .Embed (
215
215
title = "An error occured during command execution:" ,
216
216
description = ":x: An error occured with the service this command is using. The service is likely down. Please try again later." ,
217
217
color = discord .Color .red (),
218
218
)
219
219
)
220
220
return await ctx .send (
221
- discord .Embed (
221
+ embed = discord .Embed (
222
222
title = "An error occured during command execution:" ,
223
223
description = ":x: An error was returned by the service that powers this command: `" + r .error + "`" ,
224
224
color = discord .Color .red (),
You can’t perform that action at this time.
0 commit comments