[V3 Tools] Role fixes and tabulate lib

This commit is contained in:
aikaterna
2018-09-16 18:03:04 -07:00
parent 85adff49c9
commit 78ab7c1290
2 changed files with 5 additions and 2 deletions

View File

@@ -10,6 +10,9 @@
"ban_members",
"manage_channels"
],
"requirements": [
"tabulate"
],
"short": "Mod and admin tools.",
"tags": [
"tools"

View File

@@ -419,7 +419,7 @@ class Tools:
await ctx.send(cf.box("{0}{1}".format(perms_we_have, perms_we_dont), lang="diff"))
@commands.command()
async def rid(self, ctx, rolename):
async def rid(self, ctx, *, rolename):
"""Shows the id of a role."""
await ctx.trigger_typing()
if rolename is discord.Role:
@@ -436,7 +436,7 @@ class Tools:
await ctx.send(f"**{rolename} ID:** {role.id}")
@commands.command()
async def rinfo(self, ctx, rolename):
async def rinfo(self, ctx, *, rolename):
"""Shows role info."""
channel = ctx.channel
guild = ctx.guild