Fix various typos

This commit is contained in:
Nihaal Sangha 2022-02-28 02:19:19 +00:00 committed by GitHub
parent 32f131566f
commit 90cabd1673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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.

View File

@ -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)