mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-06 18:11:59 +00:00
Fix some typos
This commit is contained in:
parent
55849d996e
commit
b95db674c0
@ -238,8 +238,8 @@ def replace_parameter(
|
|||||||
if len(args) == 2 and args[-1] is _NoneType:
|
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
|
# Special case Optional[X] where X is a single type that can optionally be a converter
|
||||||
inner = args[0]
|
inner = args[0]
|
||||||
is_inner_tranformer = is_transformer(inner)
|
is_inner_transformer = is_transformer(inner)
|
||||||
if is_converter(inner) and not is_inner_tranformer:
|
if is_converter(inner) and not is_inner_transformer:
|
||||||
param = param.replace(annotation=Optional[make_converter_transformer(inner, original)]) # type: ignore
|
param = param.replace(annotation=Optional[make_converter_transformer(inner, original)]) # type: ignore
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
@ -1591,7 +1591,7 @@ class Guild(Hashable):
|
|||||||
reason: Optional[:class:`str`]
|
reason: Optional[:class:`str`]
|
||||||
The reason for creating this channel. Shows up in the audit log.
|
The reason for creating this channel. Shows up in the audit log.
|
||||||
default_auto_archive_duration: :class:`int`
|
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
|
Raises
|
||||||
-------
|
-------
|
||||||
|
@ -30,7 +30,7 @@ Some documentation to refer to:
|
|||||||
- We pull the token, endpoint and server_id from VOICE_SERVER_UPDATE.
|
- We pull the token, endpoint and server_id from VOICE_SERVER_UPDATE.
|
||||||
- Then we initiate the voice web socket (vWS) pointing to the endpoint.
|
- 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.
|
- 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.
|
- 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.
|
- Then we send our IP and port via vWS with opcode 1.
|
||||||
- When that's all done, we receive opcode 4 from the vWS.
|
- When that's all done, we receive opcode 4 from the vWS.
|
||||||
|
@ -1181,7 +1181,7 @@ class SyncWebhook(BaseWebhook):
|
|||||||
------------
|
------------
|
||||||
message_id: :class:`int`
|
message_id: :class:`int`
|
||||||
The message ID to delete.
|
The message ID to delete.
|
||||||
hread: :class:`~discord.abc.Snowflake`
|
thread: :class:`~discord.abc.Snowflake`
|
||||||
The thread the webhook message belongs to.
|
The thread the webhook message belongs to.
|
||||||
|
|
||||||
.. versionadded:: 2.0
|
.. versionadded:: 2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user