Another find+replace error fixed
This commit is contained in:
parent
d9976dfd87
commit
3a453e592b
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ class Mod:
|
||||||
# If we don't find custom permissions, get the required permission for a command
|
# 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
|
# based on what we set in utils.custom_perms, if custom_perms isn't found, we'll get an IndexError
|
||||||
try:
|
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:
|
except IndexError:
|
||||||
# Loop through and check if there is a check called is_owner
|
# 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
|
# If we loop through and don't find one, this means that the only other choice is to be
|
||||||
|
|
Loading…
Reference in a new issue