From fcbc711cafe7784e6ac57d2a09b8fc315805645b Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 19 Jul 2021 00:30:39 +0100 Subject: feat: use text instead of embeds --- arthur/utils.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'arthur/utils.py') diff --git a/arthur/utils.py b/arthur/utils.py index c81a47a..090abc5 100644 --- a/arthur/utils.py +++ b/arthur/utils.py @@ -2,15 +2,15 @@ from datetime import datetime -from discord import Embed -from discord.colour import Colour - -def generate_error_embed( - *, title: str = "'Tis but a scratch!", description: str = "An error occurred" -) -> Embed: - """Generate an error embed to return to Discord.""" - return Embed(title=title, description=description, colour=Colour.red()) +def generate_error_message( + *, + title: str = "'Tis but a scratch!", + description: str = "An error occurred", + emote: str = ":no_entry_sign:", +) -> str: + """Generate an error message to return to Discord.""" + return f"{emote} **{description}** {description}" def datetime_to_discord(time: datetime, format: str = "f") -> str: -- cgit v1.2.3