testing roleinfo

This commit is contained in:
Seaswimmer 2023-02-28 04:11:41 -05:00
parent a0e5d8ca02
commit d8860ff2c7

View file

@ -8,6 +8,13 @@ class Galaxy(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
@commands.command()
async def roleinfo(self, ctx, role: discord.Role):
"""Gives information on a specific role."""
hexcolor = str(role.color)
await ctx.send(content=f"{hexcolor}")
@commands.command() @commands.command()
async def unix(self, ctx): async def unix(self, ctx):
"""Posts the current Unix timestamp.""" """Posts the current Unix timestamp."""