mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
Remove create_error_embed from embed.py (replaced by EmbedType.ERROR
This commit is contained in:
parent
0ae2961979
commit
06ae40fc99
1 changed files with 0 additions and 17 deletions
|
@ -76,23 +76,6 @@ class EmbedCreator:
|
||||||
else:
|
else:
|
||||||
return embed
|
return embed
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def create_error_embed(
|
|
||||||
bot: Tux | None = None,
|
|
||||||
error: str = "An error occurred",
|
|
||||||
) -> discord.Embed:
|
|
||||||
try:
|
|
||||||
embed: discord.Embed = EmbedCreator.create_embed(
|
|
||||||
bot=bot,
|
|
||||||
embed_type=EmbedType.ERROR,
|
|
||||||
description=f"<:tux_error:1273494919897681930> {error}",
|
|
||||||
)
|
|
||||||
except Exception as e:
|
|
||||||
logger.debug("Error in create_error_embed", exc_info=e)
|
|
||||||
raise
|
|
||||||
else:
|
|
||||||
return embed
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_footer(
|
def get_footer(
|
||||||
bot: Tux | None = None,
|
bot: Tux | None = None,
|
||||||
|
|
Loading…
Reference in a new issue