From 3a453e592b552bb67764957731349331b5a5c343 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 19 Feb 2017 15:12:13 -0600 Subject: [PATCH] Another find+replace error fixed --- cogs/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod.py b/cogs/mod.py index 4db46bc..c4fd3c2 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -233,7 +233,7 @@ class Mod: # If we don't find custom permissions, get the required permission for a command # based on what we set in utils.custom_perms, if custom_perms isn't found, we'll get an IndexError try: - custom_perms = [func for func in cmd.utils if "custom_perms" in func.__qualname__][0] + custom_perms = [func for func in cmd.checks if "custom_perms" in func.__qualname__][0] except IndexError: # Loop through and check if there is a check called is_owner # If we loop through and don't find one, this means that the only other choice is to be