We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d4fb27 commit 259ba09Copy full SHA for 259ba09
cogs/utility.py
@@ -1294,6 +1294,11 @@ async def permissions_override(
1294
self.bot.config["override_command_level"][
1295
command.qualified_name
1296
] = level.name
1297
+
1298
+ if not any(check for check in command.checks if hasattr(check, "permission_level")):
1299
+ logger.debug('Command %s has no permissions check, adding invalid.', command.qualified_name)
1300
+ checks.has_permissions(PermissionLevel.INVALID)(command)
1301
1302
await self.bot.config.update()
1303
embed = Embed(
1304
title="Success",
0 commit comments