diff options
author | 2021-07-17 20:10:11 +0100 | |
---|---|---|
committer | 2021-07-17 20:10:11 +0100 | |
commit | d3d81582cd7005df16fe3f5306e6afbed75bdb74 (patch) | |
tree | 323a7441f6c4d32833fee922208121497c77a9de /arthur/utils.py |
Initial commit
Diffstat (limited to 'arthur/utils.py')
-rw-r--r-- | arthur/utils.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arthur/utils.py b/arthur/utils.py new file mode 100644 index 0000000..ce2d356 --- /dev/null +++ b/arthur/utils.py @@ -0,0 +1,13 @@ +"""Utility functionality for King Arthur.""" + +from discord import Embed +from discord.colour import Colour + + +def generate_error_embed(title: str = "Failed!", description: str = "An error occurred") -> Embed: + """Generate an error embed to return to Discord.""" + return Embed( + title=title, + description=description, + colour=Colour.red() + ) |