aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-08-20 22:35:12 +0100
committerGravatar GitHub <[email protected]>2020-08-20 22:35:12 +0100
commit36ccac8272de9e60c1c04db7ab3640fd76af8585 (patch)
treea32f8e9b244a134463f5584d103c31cc7c472105
parentMerge pull request #1116 from Numerlor/reminders-fix (diff)
Disable raw commands
-rw-r--r--bot/cogs/information.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/information.py b/bot/cogs/information.py
index 8982196d1..2d87866fb 100644
--- a/bot/cogs/information.py
+++ b/bot/cogs/information.py
@@ -376,7 +376,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)
+ @group(invoke_without_command=True, enabled=False)
@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."""
@@ -411,7 +411,7 @@ class Information(Cog):
for page in paginator.pages:
await ctx.send(page)
- @raw.command()
+ @raw.command(enabled=False)
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)