From bd7aa54efeac2b1c6290a259e1df7a83af030707 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 1 Mar 2024 00:25:39 -0500 Subject: [PATCH] fix(pterodactyl): fixed an issue with colors in `generate_join_leave_embed` --- pterodactyl/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 11676ab..dd2c608 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -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: