Skip to content

Commit f1fe853

Browse files
committed
🎲/random embed fix
1 parent 90440f1 commit f1fe853

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cogs/fun/randoms.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ async def random(self, ctx, *, text: str):
5252
args = re.split(pattern, text)[1:]
5353
title = re.split(pattern, text)[0]
5454
result = choice(args)
55-
embed = discord.Embed(title=title, color=no_color)
56-
embed.add_field(name=f"{Emojis.dice} Ответ:", value=result, inline=False)
55+
embed = discord.Embed(color=no_color)
56+
embed.description = f"# {title}\n## {Emojis.dice} Ответ:\n{result}"
5757
await ctx.reply(embed=embed, allowed_mentions=no_ping)
5858

5959
@random.error
6060
async def random_error(self, ctx, error):
6161
embed = discord.Embed(title=f"{Emojis.exclamation_mark} Не хватает аргументов?", color=no_color)
62-
embed.add_field(name="Ответ:", value="Да")
62+
embed.description = f"# {Emojis.exclamation_mark} Не хватает аргументов?\n## {Emojis.dice} Ответ:\nДа"
6363
await ctx.reply(embed=embed, allowed_mentions=no_ping)

0 commit comments

Comments
 (0)