mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Fix some spelling mistakes
This commit is contained in:
parent
26c6b4d449
commit
adb69e7157
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -64,7 +64,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: Checklist
|
label: Checklist
|
||||||
description: >
|
description: >
|
||||||
Let's make sure you've properly done due dilligence when reporting this issue!
|
Let's make sure you've properly done due diligence when reporting this issue!
|
||||||
options:
|
options:
|
||||||
- label: I have searched the open issues for duplicates.
|
- label: I have searched the open issues for duplicates.
|
||||||
required: true
|
required: true
|
||||||
|
@ -742,7 +742,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
|||||||
reason: :class:`str`
|
reason: :class:`str`
|
||||||
The reason for creating a new thread. Shows up on the audit log.
|
The reason for creating a new thread. Shows up on the audit log.
|
||||||
invitable: :class:`bool`
|
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``.
|
Defaults to ``True``.
|
||||||
slowmode_delay: Optional[:class:`int`]
|
slowmode_delay: Optional[:class:`int`]
|
||||||
Specifies the slowmode rate limit for user in this channel, in seconds.
|
Specifies the slowmode rate limit for user in this channel, in seconds.
|
||||||
|
@ -182,8 +182,8 @@ class Paginator:
|
|||||||
return fmt.format(self)
|
return fmt.format(self)
|
||||||
|
|
||||||
|
|
||||||
def _not_overriden(f):
|
def _not_overridden(f):
|
||||||
f.__help_command_not_overriden__ = True
|
f.__help_command_not_overridden__ = True
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ class _HelpCommandImpl(Command):
|
|||||||
self.params = get_signature_parameters(injected.command_callback, globals(), skip_parameters=1)
|
self.params = get_signature_parameters(injected.command_callback, globals(), skip_parameters=1)
|
||||||
|
|
||||||
on_error = injected.on_help_command_error
|
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:
|
if self.cog is not None:
|
||||||
self.on_error = self._on_error_cog_implementation
|
self.on_error = self._on_error_cog_implementation
|
||||||
else:
|
else:
|
||||||
@ -643,7 +643,7 @@ class HelpCommand:
|
|||||||
destination = self.get_destination()
|
destination = self.get_destination()
|
||||||
await destination.send(error)
|
await destination.send(error)
|
||||||
|
|
||||||
@_not_overriden
|
@_not_overridden
|
||||||
async def on_help_command_error(self, ctx, error):
|
async def on_help_command_error(self, ctx, error):
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ class Item(Generic[V]):
|
|||||||
|
|
||||||
The callback associated with this UI item.
|
The callback associated with this UI item.
|
||||||
|
|
||||||
This can be overriden by subclasses.
|
This can be overridden by subclasses.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
|
@ -239,10 +239,10 @@ def parse_time(timestamp: Optional[str]) -> Optional[datetime.datetime]:
|
|||||||
|
|
||||||
|
|
||||||
def copy_doc(original: Callable) -> Callable[[T], T]:
|
def copy_doc(original: Callable) -> Callable[[T], T]:
|
||||||
def decorator(overriden: T) -> T:
|
def decorator(overridden: T) -> T:
|
||||||
overriden.__doc__ = original.__doc__
|
overridden.__doc__ = original.__doc__
|
||||||
overriden.__signature__ = _signature(original) # type: ignore
|
overridden.__signature__ = _signature(original) # type: ignore
|
||||||
return overriden
|
return overridden
|
||||||
|
|
||||||
return decorator
|
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
|
# 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.
|
# 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
|
# function named outer, those two would end up having a qualname with
|
||||||
# outer.<locals>.A.foo and outer.<locals>.foo
|
# outer.<locals>.A.foo and outer.<locals>.foo
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user