fixed self.bot.get_embed_color

This commit is contained in:
Seaswimmer 2023-02-27 23:34:57 -05:00
parent 2c2ed3ded7
commit ea33765e11

View file

@ -15,7 +15,7 @@ class Galaxy(commands.Cog):
total_to = (f'{warehouse_levels[lvlto]:,}') total_to = (f'{warehouse_levels[lvlto]:,}')
output = warehouse_levels[lvlto] - warehouse_levels[lvlfrom] output = warehouse_levels[lvlto] - warehouse_levels[lvlfrom]
total = (f'{output}:,') total = (f'{output}:,')
embed = discord.Embed(title="Warehouse Cost", color=await self.bot_get_embed_color(None)) embed = discord.Embed(title="Warehouse Cost", color=await self.bot.get_embed_color(None))
embed.add_field(name="From:", value=f"Warehouse Level: {lvlfrom}\nTotal Cost: {total_from} Credits") embed.add_field(name="From:", value=f"Warehouse Level: {lvlfrom}\nTotal Cost: {total_from} Credits")
embed.add_field(name="To:", value=f"Warehouse Level: {lvlto}\nTotal Cost: {total_to} Credits") embed.add_field(name="To:", value=f"Warehouse Level: {lvlto}\nTotal Cost: {total_to} Credits")
embed.add_field(name="Output:", value=f"{total} Credits") embed.add_field(name="Output:", value=f"{total} Credits")