From 09dea4c8bc6daf4ccaa1e11df934804ddf1c5bbd Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 8 Aug 2023 21:36:19 -0400 Subject: [PATCH] feat: added more checks to managed_status --- info/info.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/info/info.py b/info/info.py index c007804..c060d07 100644 --- a/info/info.py +++ b/info/info.py @@ -529,9 +529,13 @@ class Info(commands.Cog): if role.managed is True: managed_status = "True" if role.is_premium_subscriber() is True: - managed_status += "\n - **Type:** Nitro Booster Role" + managed_status += "\n**Type:** Nitro Booster" if role.is_bot_managed() is True: - managed_status += "\n - **Type:** Managed Bot Role" + managed_status += "\n**Type:** Managed Bot Role" + if role.tags.is_guild_connection() is True: + managed_status +="\n**Type:** Guild Connection" + if role.tags.is_available_for_purchase() is True: + managed_status +="\n**Type:** Subscription" else: managed_status = "False" description = f"**ID:** {role.id}\n**Mention:** {role.mention}\n**Creation Date:** \n**Color:** [#{color}]({colorcodelink})\n**Hoisted:** {role.hoist}\n**Position:** {role.position}\n**Managed:** {managed_status}\n**Mentionable:** {role.mentionable}\n**Administrator:** {permissions.administrator}"