feat: added more checks to managed_status

This commit is contained in:
Seaswimmer 2023-08-08 21:36:19 -04:00
parent cd1f57309d
commit 09dea4c8bc
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -529,9 +529,13 @@ class Info(commands.Cog):
if role.managed is True: if role.managed is True:
managed_status = "True" managed_status = "True"
if role.is_premium_subscriber() is 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: 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: else:
managed_status = "False" managed_status = "False"
description = f"**ID:** {role.id}\n**Mention:** {role.mention}\n**Creation Date:** <t:{timestamp}>\n**Color:** [#{color}]({colorcodelink})\n**Hoisted:** {role.hoist}\n**Position:** {role.position}\n**Managed:** {managed_status}\n**Mentionable:** {role.mentionable}\n**Administrator:** {permissions.administrator}" description = f"**ID:** {role.id}\n**Mention:** {role.mention}\n**Creation Date:** <t:{timestamp}>\n**Color:** [#{color}]({colorcodelink})\n**Hoisted:** {role.hoist}\n**Position:** {role.position}\n**Managed:** {managed_status}\n**Mentionable:** {role.mentionable}\n**Administrator:** {permissions.administrator}"