aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/utils.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-07-17 21:29:43 +0100
committerGravatar Joe Banks <[email protected]>2021-07-17 21:29:43 +0100
commit69f42c451ec5a5eb204c8617251ecc372b262411 (patch)
tree0ba6bd457c4942ffb9a0c7a77ddfad0b013cdb53 /arthur/utils.py
parentchore: add monty python reference to error message (diff)
fix: linting compliance
Diffstat (limited to 'arthur/utils.py')
-rw-r--r--arthur/utils.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/arthur/utils.py b/arthur/utils.py
index 4ea2315..12e2646 100644
--- a/arthur/utils.py
+++ b/arthur/utils.py
@@ -4,10 +4,8 @@ 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:
+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()
- )
+ return Embed(title=title, description=description, colour=Colour.red())