Fix some typos

This commit is contained in:
apple502j 2022-06-28 11:34:45 +09:00 committed by GitHub
parent 55849d996e
commit b95db674c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -238,8 +238,8 @@ def replace_parameter(
if len(args) == 2 and args[-1] is _NoneType:
# Special case Optional[X] where X is a single type that can optionally be a converter
inner = args[0]
is_inner_tranformer = is_transformer(inner)
if is_converter(inner) and not is_inner_tranformer:
is_inner_transformer = is_transformer(inner)
if is_converter(inner) and not is_inner_transformer:
param = param.replace(annotation=Optional[make_converter_transformer(inner, original)]) # type: ignore
else:
raise

View File

@ -1591,7 +1591,7 @@ class Guild(Hashable):
reason: Optional[:class:`str`]
The reason for creating this channel. Shows up in the audit log.
default_auto_archive_duration: :class:`int`
The default auto archive duuration for threads created in the forum channel (in minutes).
The default auto archive duration for threads created in the forum channel (in minutes).
Raises
-------

View File

@ -30,7 +30,7 @@ Some documentation to refer to:
- We pull the token, endpoint and server_id from VOICE_SERVER_UPDATE.
- Then we initiate the voice web socket (vWS) pointing to the endpoint.
- We send opcode 0 with the user_id, server_id, session_id and token using the vWS.
- The vWS sends back opcode 2 with an ssrc, port, modes(array) and hearbeat_interval.
- The vWS sends back opcode 2 with an ssrc, port, modes(array) and heartbeat_interval.
- We send a UDP discovery packet to endpoint:port and receive our IP and our port in LE.
- Then we send our IP and port via vWS with opcode 1.
- When that's all done, we receive opcode 4 from the vWS.

View File

@ -1181,7 +1181,7 @@ class SyncWebhook(BaseWebhook):
------------
message_id: :class:`int`
The message ID to delete.
hread: :class:`~discord.abc.Snowflake`
thread: :class:`~discord.abc.Snowflake`
The thread the webhook message belongs to.
.. versionadded:: 2.0