aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'arthur/utils.py')
-rw-r--r--arthur/utils.py13
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()
+ )