From d8860ff2c74edfb5d94e0b6c8582abf5b114a402 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 28 Feb 2023 04:11:41 -0500 Subject: [PATCH] testing roleinfo --- galaxy/galaxy.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 046d36d..597a6a6 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -8,6 +8,13 @@ class Galaxy(commands.Cog): def __init__(self, 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() async def unix(self, ctx): """Posts the current Unix timestamp."""