This commit is contained in:
Seaswimmer 2023-02-28 04:14:16 -05:00
parent d8860ff2c7
commit 993d07d013

View file

@ -1,6 +1,7 @@
from redbot.core import commands, checks from redbot.core import commands, checks
import discord import discord
from datetime import datetime, timezone from datetime import datetime
import re
class Galaxy(commands.Cog): class Galaxy(commands.Cog):
"""Custom cog intended for use on the Galaxy discord server.""" """Custom cog intended for use on the Galaxy discord server."""
@ -12,7 +13,8 @@ class Galaxy(commands.Cog):
async def roleinfo(self, ctx, role: discord.Role): async def roleinfo(self, ctx, role: discord.Role):
"""Gives information on a specific role.""" """Gives information on a specific role."""
hexcolor = str(role.color) hexcolor = str(role.color)
await ctx.send(content=f"{hexcolor}") color = re.sub('#',"",str(role.color))
await ctx.send(content=f"{color}")
@commands.command() @commands.command()