Skip to content

Commit ad180d5

Browse files
author
Kile
committed
🐛 Make error messages work
1 parent 2912044 commit ad180d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

killua/cogs/image_manipulation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ async def handle_command(
187187
else:
188188
await ctx.channel.typing()
189189
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)
191191
except TimeoutError:
192192
return await ctx.send(
193-
discord.Embed(
193+
embed=discord.Embed(
194194
title="An error occured during command execution:",
195195
description=":x: The API took too long to respond. Please try again later (It is likely down).",
196196
color=discord.Color.red(),
@@ -211,14 +211,14 @@ async def handle_command(
211211
)
212212
if len(r.error) > 2000:
213213
return await ctx.send(
214-
discord.Embed(
214+
embed=discord.Embed(
215215
title="An error occured during command execution:",
216216
description=":x: An error occured with the service this command is using. The service is likely down. Please try again later.",
217217
color=discord.Color.red(),
218218
)
219219
)
220220
return await ctx.send(
221-
discord.Embed(
221+
embed=discord.Embed(
222222
title="An error occured during command execution:",
223223
description=":x: An error was returned by the service that powers this command: `" + r.error + "`",
224224
color=discord.Color.red(),

0 commit comments

Comments
 (0)