From b95db674c06646e3113a4ac93145e3e210291ba7 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Tue, 28 Jun 2022 11:34:45 +0900 Subject: [PATCH] Fix some typos --- discord/ext/commands/hybrid.py | 4 ++-- discord/guild.py | 2 +- discord/voice_client.py | 2 +- discord/webhook/sync.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/discord/ext/commands/hybrid.py b/discord/ext/commands/hybrid.py index 6673900cc..b826aa7be 100644 --- a/discord/ext/commands/hybrid.py +++ b/discord/ext/commands/hybrid.py @@ -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 diff --git a/discord/guild.py b/discord/guild.py index 976d11d37..d4fe7521c 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -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 ------- diff --git a/discord/voice_client.py b/discord/voice_client.py index 51fa650ea..093c6270e 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -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. diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py index e5e23e357..1eed37ee2 100644 --- a/discord/webhook/sync.py +++ b/discord/webhook/sync.py @@ -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