diff options
| author | Izhar Ahmad <[email protected]> | 2021-06-28 09:05:08 +0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-28 00:05:08 -0400 |
| commit | 2cd2d1d3ee3cce28cedd54d4c7125864cfd61fc7 (patch) | |
| tree | e2a2b66e84feb923bf754cb592ab89370a94c63a | |
| parent | Add ButtonStyle.gray alias (diff) | |
| download | discord.py-2cd2d1d3ee3cce28cedd54d4c7125864cfd61fc7.tar.xz discord.py-2cd2d1d3ee3cce28cedd54d4c7125864cfd61fc7.zip | |
[commands] Rename missing_perms to missing_permissions
| -rw-r--r-- | discord/ext/commands/errors.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py index 3a67bb46..227985f4 100644 --- a/discord/ext/commands/errors.py +++ b/discord/ext/commands/errors.py @@ -608,13 +608,13 @@ class MissingPermissions(CheckFailure): Attributes ----------- - missing_perms: :class:`list` + missing_permissions: :class:`list` The required permissions that are missing. """ - def __init__(self, missing_perms, *args): - self.missing_perms = missing_perms + def __init__(self, missing_permissions, *args): + self.missing_permissions = missing_permissions - missing = [perm.replace('_', ' ').replace('guild', 'server').title() for perm in missing_perms] + missing = [perm.replace('_', ' ').replace('guild', 'server').title() for perm in missing_permissions] if len(missing) > 2: fmt = '{}, and {}'.format(", ".join(missing[:-1]), missing[-1]) @@ -631,13 +631,13 @@ class BotMissingPermissions(CheckFailure): Attributes ----------- - missing_perms: :class:`list` + missing_permissions: :class:`list` The required permissions that are missing. """ - def __init__(self, missing_perms, *args): - self.missing_perms = missing_perms + def __init__(self, missing_permissions, *args): + self.missing_permissions = missing_permissions - missing = [perm.replace('_', ' ').replace('guild', 'server').title() for perm in missing_perms] + missing = [perm.replace('_', ' ').replace('guild', 'server').title() for perm in missing_permissions] if len(missing) > 2: fmt = '{}, and {}'.format(", ".join(missing[:-1]), missing[-1]) |