mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-31 05:23:03 +00:00 
			
		
		
		
	Fix some spelling mistakes
This commit is contained in:
		| @@ -742,7 +742,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): | ||||
|         reason: :class:`str` | ||||
|             The reason for creating a new thread. Shows up on the audit log. | ||||
|         invitable: :class:`bool` | ||||
|             Whether non-modertators can add users to the thread. Only applicable to private threads. | ||||
|             Whether non-moderators can add users to the thread. Only applicable to private threads. | ||||
|             Defaults to ``True``. | ||||
|         slowmode_delay: Optional[:class:`int`] | ||||
|             Specifies the slowmode rate limit for user in this channel, in seconds. | ||||
|   | ||||
| @@ -182,8 +182,8 @@ class Paginator: | ||||
|         return fmt.format(self) | ||||
|  | ||||
|  | ||||
| def _not_overriden(f): | ||||
|     f.__help_command_not_overriden__ = True | ||||
| def _not_overridden(f): | ||||
|     f.__help_command_not_overridden__ = True | ||||
|     return f | ||||
|  | ||||
|  | ||||
| @@ -201,7 +201,7 @@ class _HelpCommandImpl(Command): | ||||
|         self.params = get_signature_parameters(injected.command_callback, globals(), skip_parameters=1) | ||||
|  | ||||
|         on_error = injected.on_help_command_error | ||||
|         if not hasattr(on_error, '__help_command_not_overriden__'): | ||||
|         if not hasattr(on_error, '__help_command_not_overridden__'): | ||||
|             if self.cog is not None: | ||||
|                 self.on_error = self._on_error_cog_implementation | ||||
|             else: | ||||
| @@ -643,7 +643,7 @@ class HelpCommand: | ||||
|         destination = self.get_destination() | ||||
|         await destination.send(error) | ||||
|  | ||||
|     @_not_overriden | ||||
|     @_not_overridden | ||||
|     async def on_help_command_error(self, ctx, error): | ||||
|         """|coro| | ||||
|  | ||||
|   | ||||
| @@ -123,7 +123,7 @@ class Item(Generic[V]): | ||||
|  | ||||
|         The callback associated with this UI item. | ||||
|  | ||||
|         This can be overriden by subclasses. | ||||
|         This can be overridden by subclasses. | ||||
|  | ||||
|         Parameters | ||||
|         ----------- | ||||
|   | ||||
| @@ -239,10 +239,10 @@ def parse_time(timestamp: Optional[str]) -> Optional[datetime.datetime]: | ||||
|  | ||||
|  | ||||
| def copy_doc(original: Callable) -> Callable[[T], T]: | ||||
|     def decorator(overriden: T) -> T: | ||||
|         overriden.__doc__ = original.__doc__ | ||||
|         overriden.__signature__ = _signature(original)  # type: ignore | ||||
|         return overriden | ||||
|     def decorator(overridden: T) -> T: | ||||
|         overridden.__doc__ = original.__doc__ | ||||
|         overridden.__signature__ = _signature(original)  # type: ignore | ||||
|         return overridden | ||||
|  | ||||
|     return decorator | ||||
|  | ||||
| @@ -1076,7 +1076,7 @@ def is_inside_class(func: Callable[..., Any]) -> bool: | ||||
|     # denoting which class it belongs to. So, e.g. for A.foo the qualname | ||||
|     # would be A.foo while a global foo() would just be foo. | ||||
|     # | ||||
|     # Unfortuately, for nested functions this breaks. So inside an outer | ||||
|     # Unfortunately, for nested functions this breaks. So inside an outer | ||||
|     # function named outer, those two would end up having a qualname with | ||||
|     # outer.<locals>.A.foo and outer.<locals>.foo | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user