add emojis to inv embed
@@ -7,7 +7,7 @@ import random
import arrow
import math
-from util.misc import lb_logic, cmds_lb, format_required, make_health_bar, calc_total_wealth
+from util.misc import lb_logic, cmds_lb, format_required, make_health_bar, calc_total_wealth, emojify_item
class Econ(commands.Cog):
@@ -214,6 +214,10 @@ class Econ(commands.Cog):
for item in items_chunks[page]:
sell_price_nice = f'({item["sell_price"]}{self.d.emojis.emerald})' if item["sell_price"] != -1 else ""
+
+ try:
+ body += f'`{item["amount"]}x` {emojify_item(item["name"])} **{item["name"]}** {sell_price_nice}\n'
+ except ValueError:
body += f'`{item["amount"]}x` **{item["name"]}** {sell_price_nice}\n'
embed = discord.Embed(color=self.d.cc, description=body)
