@@ -120,29 +120,12 @@ def __repr__(self):
120120_default = _DefaultRepr ()
121121
122122class BotBase (GroupMixin ):
123- def __init__ (self , command_prefix = when_mentioned , help_command = _default , description = None , ** options ):
124- # OVERRIDE 124: remove description param, 127-133, 135-137, 140-144
123+ def __init__ (self , command_prefix = when_mentioned , help_command = _default , ** options ):
125124 super ().__init__ (** options )
126125 self .command_prefix = command_prefix
127- self .extra_events : Dict [str , List [CoroFunc ]] = {}
128- self .__cogs : Dict [str , Cog ] = {}
129- self .__extensions : Dict [str , types .ModuleType ] = {}
130- self ._checks : List [Check ] = []
131- self ._check_once = []
132- self ._before_invoke = None
133- self ._after_invoke = None
134126 self ._help_command = None
135- self .description = inspect .cleandoc (description ) if description else ''
136- self .owner_id = options .get ('owner_id' )
137- self .owner_ids = options .get ('owner_ids' , set ())
138127 self .strip_after_prefix = options .get ('strip_after_prefix' , False )
139128
140- if self .owner_id and self .owner_ids :
141- raise TypeError ('Both owner_id and owner_ids are set.' )
142-
143- if self .owner_ids and not isinstance (self .owner_ids , collections .abc .Collection ):
144- raise TypeError (f'owner_ids must be a collection not { self .owner_ids .__class__ !r} ' )
145-
146129 if help_command is _default :
147130 self .help_command = DefaultHelpCommand ()
148131 else :
@@ -702,6 +685,23 @@ async def process_commands(self, message: Message) -> None:
702685 async def on_message (self , message ):
703686 await self .process_commands (message )
704687
688+
689+
690+
691+
692+
693+
694+
695+
696+
697+
698+
699+
700+
701+
702+
703+
704+
705705class Bot (BotBase , discord .Bot ):
706706 """Represents a discord bot.
707707
@@ -747,32 +747,17 @@ class Bot(BotBase, discord.Bot):
747747 Whether the commands should be case insensitive. Defaults to ``False``. This
748748 attribute does not carry over to groups. You must set it to every group if
749749 you require group commands to be case insensitive as well.
750- description: :class:`str`
751- The content prefixed into the default help message.
752750 help_command: Optional[:class:`.HelpCommand`]
753751 The help command implementation to use. This can be dynamically
754752 set at runtime. To remove the help command pass ``None``. For more
755753 information on implementing a help command, see :ref:`ext_commands_help_command`.
756- owner_id: Optional[:class:`int`]
757- The user ID that owns the bot. If this is not set and is then queried via
758- :meth:`.is_owner` then it is fetched automatically using
759- :meth:`~.Bot.application_info`.
760- owner_ids: Optional[Collection[:class:`int`]]
761- The user IDs that owns the bot. This is similar to :attr:`owner_id`.
762- If this is not set and the application is team based, then it is
763- fetched automatically using :meth:`~.Bot.application_info`.
764- For performance reasons it is recommended to use a :class:`set`
765- for the collection. You cannot set both ``owner_id`` and ``owner_ids``.
766-
767- .. versionadded:: 1.3
768754 strip_after_prefix: :class:`bool`
769755 Whether to strip whitespace characters after encountering the command
770756 prefix. This allows for ``! hello`` and ``!hello`` to both work if
771757 the ``command_prefix`` is set to ``!``. Defaults to ``False``.
772758
773759 .. versionadded:: 1.7
774760 """
775- # OVERRIDE 775: 750-751, 756-765
776761 pass
777762
778763class AutoShardedBot (BotBase , discord .AutoShardedBot ):
0 commit comments