diff options
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/context.py | 1 | ||||
| -rw-r--r-- | discord/ext/commands/converter.py | 10 | ||||
| -rw-r--r-- | discord/ext/commands/cooldowns.py | 1 | ||||
| -rw-r--r-- | discord/ext/commands/core.py | 8 | ||||
| -rw-r--r-- | discord/ext/commands/errors.py | 7 | ||||
| -rw-r--r-- | discord/ext/commands/view.py | 1 |
6 files changed, 16 insertions, 12 deletions
diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index de37a1a7..4beaa7d6 100644 --- a/discord/ext/commands/context.py +++ b/discord/ext/commands/context.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- + """ The MIT License (MIT) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index bb3a5708..880876a4 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -30,11 +30,11 @@ import inspect from .errors import BadArgument, NoPrivateMessage -__all__ = [ 'Converter', 'MemberConverter', 'UserConverter', - 'TextChannelConverter', 'InviteConverter', 'RoleConverter', - 'GameConverter', 'ColourConverter', 'VoiceChannelConverter', - 'EmojiConverter', 'PartialEmojiConverter', 'CategoryChannelConverter', - 'IDConverter', 'clean_content' ] +__all__ = ['Converter', 'MemberConverter', 'UserConverter', + 'TextChannelConverter', 'InviteConverter', 'RoleConverter', + 'GameConverter', 'ColourConverter', 'VoiceChannelConverter', + 'EmojiConverter', 'PartialEmojiConverter', 'CategoryChannelConverter', + 'IDConverter', 'clean_content'] def _get_from_guilds(bot, getter, argument): result = None diff --git a/discord/ext/commands/cooldowns.py b/discord/ext/commands/cooldowns.py index 32c4e65e..196d00fc 100644 --- a/discord/ext/commands/cooldowns.py +++ b/discord/ext/commands/cooldowns.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- + """ The MIT License (MIT) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 56c4baff..a3198651 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -35,10 +35,10 @@ from .cooldowns import Cooldown, BucketType, CooldownMapping from .view import quoted_word from . import converter as converters -__all__ = [ 'Command', 'Group', 'GroupMixin', 'command', 'group', - 'has_role', 'has_permissions', 'has_any_role', 'check', - 'bot_has_role', 'bot_has_permissions', 'bot_has_any_role', - 'cooldown', 'guild_only', 'is_owner', 'is_nsfw', ] +__all__ = ['Command', 'Group', 'GroupMixin', 'command', 'group', + 'has_role', 'has_permissions', 'has_any_role', 'check', + 'bot_has_role', 'bot_has_permissions', 'bot_has_any_role', + 'cooldown', 'guild_only', 'is_owner', 'is_nsfw'] def wrap_callback(coro): @functools.wraps(coro) diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py index d6443f2f..195ca38d 100644 --- a/discord/ext/commands/errors.py +++ b/discord/ext/commands/errors.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- + """ The MIT License (MIT) @@ -26,7 +27,7 @@ DEALINGS IN THE SOFTWARE. from discord.errors import DiscordException -__all__ = [ 'CommandError', 'MissingRequiredArgument', 'BadArgument', +__all__ = ['CommandError', 'MissingRequiredArgument', 'BadArgument', 'NoPrivateMessage', 'CheckFailure', 'CommandNotFound', 'DisabledCommand', 'CommandInvokeError', 'TooManyArguments', 'UserInputError', 'CommandOnCooldown', 'NotOwner', @@ -171,7 +172,7 @@ class MissingPermissions(CheckFailure): missing = [perm.replace('_', ' ').replace('guild', 'server').title() for perm in missing_perms] if len(missing) > 2: - fmt = '{}, and {}'.format(", ".join(missing[:-1]), missing[-1]) + fmt = '{}, and {}'.format(", ".join(missing[:-1]), missing[-1]) else: fmt = ' and '.join(missing) message = 'You are missing {} permission(s) to run command.'.format(fmt) @@ -191,7 +192,7 @@ class BotMissingPermissions(CheckFailure): missing = [perm.replace('_', ' ').replace('guild', 'server').title() for perm in missing_perms] if len(missing) > 2: - fmt = '{}, and {}'.format(", ".join(missing[:-1]), missing[-1]) + fmt = '{}, and {}'.format(", ".join(missing[:-1]), missing[-1]) else: fmt = ' and '.join(missing) message = 'Bot requires {} permission(s) to run command.'.format(fmt) diff --git a/discord/ext/commands/view.py b/discord/ext/commands/view.py index 843dc9a3..e4c48db9 100644 --- a/discord/ext/commands/view.py +++ b/discord/ext/commands/view.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- + """ The MIT License (MIT) |