fix(speedtest): removed an await

This commit is contained in:
Seaswimmer 2024-05-25 17:24:40 -04:00
parent 8f55c6083a
commit 7806aa29c5
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -58,7 +58,7 @@ class Speedtest(commands.Cog):
r = await self.run_speedtest()
if await ctx.embed_requested():
if isinstance(r, str):
await msg.edit(embed=discord.Embed(description=f"An error occurred! {r}", color=await discord.Colour.red()))
await msg.edit(embed=discord.Embed(description=f"An error occurred! {r}", color=discord.Colour.red()))
return
embed = discord.Embed(title="Speedtest Results", link=r["result"]["url"], color=await ctx.embed_color())
embed.add_field(name="Bandwidth", value=f"{r['download']['bandwidth'] / 1_000_000:.2f} Mbps down, {r['upload']['bandwidth'] / 1_000_000:.2f} Mbps up")