diff options
author | 2021-07-19 00:30:39 +0100 | |
---|---|---|
committer | 2021-07-19 00:30:39 +0100 | |
commit | fcbc711cafe7784e6ac57d2a09b8fc315805645b (patch) | |
tree | d7361b14aa69175910a27accaff6f7b131f33c1f /arthur/utils.py | |
parent | feat: add ed command (diff) |
feat: use text instead of embeds
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: |