aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/utils.py
blob: ce2d3564811b4cf1e29f2d28d9e9e99295ac28fe (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 = "Failed!", description: str = "An error occurred") -> Embed:
    """Generate an error embed to return to Discord."""
    return Embed(
        title=title,
        description=description,
        colour=Colour.red()
    )