blob: 4ea2315941b5f866b872dca9dedd6a8f1c99056a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""Utility functionality for King Arthur."""
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()
)
|