From 7806aa29c596d1b6e72da1c2548233320cba6310 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sat, 25 May 2024 17:24:40 -0400 Subject: [PATCH] fix(speedtest): removed an await --- speedtest/speedtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speedtest/speedtest.py b/speedtest/speedtest.py index 1d10019..3e427f3 100644 --- a/speedtest/speedtest.py +++ b/speedtest/speedtest.py @@ -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")