feat: added more checks to managed_status
This commit is contained in:
parent
cd1f57309d
commit
09dea4c8bc
1 changed files with 6 additions and 2 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue