Add Info Cog #11

Merged
cswimr merged 19 commits from info into master 2023-07-01 11:36:31 -04:00
Showing only changes of commit f1822b42cd - Show all commits

View file

@ -86,6 +86,20 @@ class Info(commands.Cog):
embed[0].colour = "#5d82d1" embed[0].colour = "#5d82d1"
await ctx.message.reply(embeds=embed) await ctx.message.reply(embeds=embed)
# This is commented out due to an issue with the Revolt.py library.
# @commands.command()
# async def roleinfo(self, ctx: commands.Context, role: revolt.Role):
# """Displays information about a role."""
# embed = [CustomEmbed(description=f"## {role.name}\n### Role ID\n{role.id}")]
# if role.color:
# embed[0].colour = role.colour
# else:
# embed[0].colour = "#5d82d1"
# embed[0].add_field(name="Hoisted", value=role.hoist)
# embed[0].add_field(name="Rank", value=role.rank)
# embed[0].add_field(name="Permissions", value=role.server_permissions)
# await ctx.message.reply(embeds=embed)
@commands.command() @commands.command()
async def userinfo(self, ctx: commands.Context, user: commands.UserConverter = None): async def userinfo(self, ctx: commands.Context, user: commands.UserConverter = None):
"""Displays information about a user.""" """Displays information about a user."""