From 78ab7c1290a94f16d75ddd3a4e669bb3ca663460 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Sun, 16 Sep 2018 18:03:04 -0700 Subject: [PATCH] [V3 Tools] Role fixes and tabulate lib --- tools/info.json | 3 +++ tools/tools.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/info.json b/tools/info.json index ac95ddc..0532817 100644 --- a/tools/info.json +++ b/tools/info.json @@ -10,6 +10,9 @@ "ban_members", "manage_channels" ], + "requirements": [ + "tabulate" + ], "short": "Mod and admin tools.", "tags": [ "tools" diff --git a/tools/tools.py b/tools/tools.py index 7095bf7..7f752fc 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -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