diff --git a/discord/ext/commands/cooldowns.py b/discord/ext/commands/cooldowns.py index b3af2bf04..50765ebe0 100644 --- a/discord/ext/commands/cooldowns.py +++ b/discord/ext/commands/cooldowns.py @@ -73,7 +73,7 @@ class BucketType(Enum): # we return the channel id of a private-channel as there are only roles in guilds # and that yields the same result as for a guild with only the @everyone role # NOTE: PrivateChannel doesn't actually have an id attribute but we assume we are - # recieving a DMChannel or GroupChannel which inherit from PrivateChannel and do + # receiving a DMChannel or GroupChannel which inherit from PrivateChannel and do return (msg.channel if isinstance(msg.channel, PrivateChannel) else msg.author.top_role).id # type: ignore def __call__(self, msg: Message) -> Any: diff --git a/discord/ui/text_input.py b/discord/ui/text_input.py index a23d9b82a..5089bb36f 100644 --- a/discord/ui/text_input.py +++ b/discord/ui/text_input.py @@ -58,7 +58,7 @@ class TextInput(Item[V]): label: :class:`str` The label to display above the text input. custom_id: :class:`str` - The ID of the text input that gets recieved during an interaction. + The ID of the text input that gets received during an interaction. If not given then one is generated for you. style: :class:`discord.TextStyle` The style of the text input. diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 9ee702e8e..e9ec456ad 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -406,9 +406,9 @@ class AsyncWebhookAdapter: ) -> Response[None]: r = Route( 'DELETE', - '/webhooks/{webhook_id}/{wehook_token}/messages/@original', + '/webhooks/{webhook_id}/{webhook_token}/messages/@original', webhook_id=application_id, - wehook_token=token, + webhook_token=token, ) return self.request(r, session=session)