move badges to bottom of embed
@@ -120,9 +120,11 @@ class Econ(commands.Cog):
vote_streak = 0
await self.db.update_user(user.id, vote_streak=0, last_vote=None)
+ user_badges_str = self.badges.emojify_badges(await self.badges.fetch_user_badges(user.id))
+
embed = discord.Embed(
color=self.d.cc,
- description=f"{health_bar}\n{self.badges.emojify_badges(await self.badges.fetch_user_badges(user.id))}",
+ description=f"{health_bar}"
)
embed.set_author(name=user.display_name, icon_url=user.avatar_url_as())
@@ -138,6 +140,9 @@ class Econ(commands.Cog):
embed.add_field(name="\uFEFF", value="\uFEFF")
embed.add_field(name=ctx.l.econ.pp.sword, value=(await self.db.fetch_sword(user.id)))
+ if user_badges_str:
+ embed.add_field(name="Badges", value=user_badges_str)
+
await ctx.reply(embed=embed, mention_author=False)
@commands.command(name="balance", aliases=["bal", "vault", "pocket"])
