testing some changes
This commit is contained in:
parent
ca9553299a
commit
fea2710645
1 changed files with 2 additions and 2 deletions
|
@ -17,11 +17,11 @@ class Galaxy(commands.Cog):
|
||||||
color = re.sub('#',"",str(role.color))
|
color = re.sub('#',"",str(role.color))
|
||||||
colorcodelink = f"https://www.color-hex.com/color/{color}"
|
colorcodelink = f"https://www.color-hex.com/color/{color}"
|
||||||
if role.color.value == 0:
|
if role.color.value == 0:
|
||||||
colorint = await self.bot.get_embed_color(None)
|
colorint = 10070709
|
||||||
else:
|
else:
|
||||||
colorint = role.color.value
|
colorint = role.color.value
|
||||||
if permissions.administrator:
|
if permissions.administrator:
|
||||||
embed = discord.Embed(color=colorint, description=f"**ID:** {role.id}\n**Mention:** {role.mention}\n**Creation Date:** {role.created_at}\n**Color:** [str({role.color})]({colorcodelink})\n**Hoisted:** {role.hoist}\n**Position:** {role.position}\n**Managed:** {role.managed}\n**Mentionable:** {role.mentionable}\n**Administrator:** {role.permissions.administrator}")
|
embed = discord.Embed(title=f"{role.name}", color=colorint, description=f"**ID:** {role.id}\n**Mention:** {role.mention}\n**Creation Date:** {role.created_at}\n**Color:** [{role.color}]({colorcodelink})\n**Hoisted:** {role.hoist}\n**Position:** {role.position}\n**Managed:** {role.managed}\n**Mentionable:** {role.mentionable}\n**Administrator:** {role.permissions.administrator}")
|
||||||
else:
|
else:
|
||||||
embed = discord.Embed(color=colorint, description="Without Administrator")
|
embed = discord.Embed(color=colorint, description="Without Administrator")
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
Loading…
Reference in a new issue