From f59aa786beaa93a3b102230b191336b05687fbed Mon Sep 17 00:00:00 2001 From: snipe_blaze <72265661+notsniped@users.noreply.github.com> Date: Tue, 9 Aug 2022 11:04:27 +0530 Subject: [PATCH] Return stylized name class instead of raw key when autogrind completes --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ba448a2e..0faebc04 100644 --- a/main.py +++ b/main.py @@ -936,7 +936,7 @@ async def autogrind(ctx:SlashContext): items[str(ctx.author.id)][items_reward[1]] += 1 items[str(ctx.author.id)][items_reward[2]] += 1 save() - localembed = discord.Embed(title="Autogrind has completed!", description=f"**Your rewards**\n\nYou got **{coins_reward}** coins!\nYou got **1 {items_reward[0]}**!\nYou got **1 {items_reward[1]}**!\nYou got **1 {items_reward[2]}!**", color=discord.Color.green()) + localembed = discord.Embed(title="Autogrind has completed!", description=f"**Your rewards**\n\nYou got **{coins_reward}** coins!\nYou got **1 {shopitem[items_reward[0]]['stylized name']}**!\nYou got **1 {shopitem[items_reward[1]]['stylized name']}**!\nYou got **1 {shopitem[items_reward[2]]['stylized name']}!**", color=discord.Color.green()) await ctx.author.send(embed = localembed) @slash.slash(