testing roleinfo
This commit is contained in:
parent
a0e5d8ca02
commit
d8860ff2c7
1 changed files with 7 additions and 0 deletions
|
@ -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."""
|
||||||
|
|
Loading…
Reference in a new issue