mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 02:16:09 -05:00
Reject bad perm kwargs in check decorators (#2289)
Also fixed a misspelled kwarg in reports. Also now raising TypeError for an empty `@checks.has_permissions()` decorator. Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
@@ -316,7 +316,7 @@ class Reports(commands.Cog):
|
||||
self.tunnel_store[k]["msgs"] = msgs
|
||||
|
||||
@commands.guild_only()
|
||||
@checks.mod_or_permissions(manage_members=True)
|
||||
@checks.mod_or_permissions(manage_roles=True)
|
||||
@report.command(name="interact")
|
||||
async def response(self, ctx, ticket_number: int):
|
||||
"""Open a message tunnel.
|
||||
|
||||
Reference in New Issue
Block a user