|
|
@ -110,6 +110,7 @@ class BotBase(GroupMixin): |
|
|
|
self._before_invoke = None |
|
|
|
self._after_invoke = None |
|
|
|
self._help_command = None |
|
|
|
self._skip_check = lambda x, y: x != y |
|
|
|
self.description = inspect.cleandoc(description) if description else '' |
|
|
|
self.owner_id = options.get('owner_id') |
|
|
|
self.owner_ids = options.get('owner_ids', set()) |
|
|
@ -121,11 +122,6 @@ class BotBase(GroupMixin): |
|
|
|
if self.owner_ids and not isinstance(self.owner_ids, collections.abc.Collection): |
|
|
|
raise TypeError(f'owner_ids must be a collection not {self.owner_ids.__class__!r}') |
|
|
|
|
|
|
|
if options.pop('self_bot', False): |
|
|
|
self._skip_check = lambda x, y: x != y |
|
|
|
else: |
|
|
|
self._skip_check = lambda x, y: x == y |
|
|
|
|
|
|
|
if help_command is _default: |
|
|
|
self.help_command = DefaultHelpCommand() |
|
|
|
else: |
|
|
@ -1051,10 +1047,6 @@ class Bot(BotBase, discord.Client): |
|
|
|
you require group commands to be case insensitive as well. |
|
|
|
description: :class:`str` |
|
|
|
The content prefixed into the default help message. |
|
|
|
self_bot: :class:`bool` |
|
|
|
If ``True``, the bot will only listen to commands invoked by itself rather |
|
|
|
than ignoring itself. If ``False`` (the default) then the bot will ignore |
|
|
|
itself. This cannot be changed once initialised. |
|
|
|
help_command: Optional[:class:`.HelpCommand`] |
|
|
|
The help command implementation to use. This can be dynamically |
|
|
|
set at runtime. To remove the help command pass ``None``. For more |
|
|
|