diff options
Diffstat (limited to 'arthur/utils.py')
-rw-r--r-- | arthur/utils.py | 16 |
1 files changed, 8 insertions, 8 deletions
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: |