diff options
| author | 2020-12-27 17:02:02 +0200 | |
|---|---|---|
| committer | 2020-12-27 17:02:02 +0200 | |
| commit | cca72be223cc7c6a3f88d6f813c6557b152b5bce (patch) | |
| tree | df2070fefbb29f109df406c80a57022e839df054 | |
| parent | Add check does user can see channel in raw command (diff) | |
Enable raw command
| -rw-r--r-- | bot/exts/info/information.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index c1db0c230..f7e36ac97 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -419,7 +419,7 @@ class Information(Cog): return out.rstrip() @cooldown_with_role_bypass(2, 60 * 3, BucketType.member, bypass_roles=constants.STAFF_ROLES) - @group(invoke_without_command=True, enabled=False) + @group(invoke_without_command=True) @in_whitelist(channels=(constants.Channels.bot_commands,), roles=constants.STAFF_ROLES) async def raw(self, ctx: Context, *, message: Message, json: bool = False) -> None: """Shows information about the raw API response.""" @@ -458,7 +458,7 @@ class Information(Cog): for page in paginator.pages: await ctx.send(page) - @raw.command(enabled=False) + @raw.command() async def json(self, ctx: Context, message: Message) -> None: """Shows information about the raw API response in a copy-pasteable Python format.""" await ctx.invoke(self.raw, message=message, json=True) |