fix(pterodactyl): fixed an issue with colors in generate_join_leave_embed
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 19s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 21s

This commit is contained in:
Seaswimmer 2024-03-01 00:25:39 -05:00
parent f91cd82d1b
commit bd7aa54efe
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -198,7 +198,7 @@ async def send_chat_discord(coginstance: Pterodactyl, username: str, message: st
async def generate_join_leave_embed(username: str, join: bool) -> discord.Embed:
embed = discord.Embed()
embed.color = discord.Color.green if join else discord.Color.red
embed.color = discord.Color.green() if join else discord.Color.red()
embed.description = await config.join_msg() if join else await config.leave_msg()
info = await get_info(username)
if info: