aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/utils.py
blob: 12e264639a393d297ae4889dadbdd223343899a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
"""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())