fix(speedtest): fixed an incorrectly named kwarg
This commit is contained in:
parent
30003cd7c8
commit
c2333f40ef
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class Speedtest(commands.Cog):
|
||||||
if isinstance(r, str):
|
if isinstance(r, str):
|
||||||
await msg.edit(embed=discord.Embed(description=f"An error occurred! {r}", color=discord.Colour.red()))
|
await msg.edit(embed=discord.Embed(description=f"An error occurred! {r}", color=discord.Colour.red()))
|
||||||
return
|
return
|
||||||
embed = discord.Embed(title="Speedtest Results", link=r["result"]["url"], color=await ctx.embed_color())
|
embed = discord.Embed(title="Speedtest Results", url=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")
|
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")
|
||||||
embed.add_field(name="Ping", value=f"Base: {round(r['ping']['latency'])} ms \nDownload: {round(r['download']['latency']['igm'])} ms \nUpload: {round(r['upload']['latency']['igm'])} ms")
|
embed.add_field(name="Ping", value=f"Base: {round(r['ping']['latency'])} ms \nDownload: {round(r['download']['latency']['igm'])} ms \nUpload: {round(r['upload']['latency']['igm'])} ms")
|
||||||
embed.set_image(url=r["result"]["image"] + ".png")
|
embed.set_image(url=r["result"]["image"] + ".png")
|
||||||
|
|
Loading…
Reference in a new issue