mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix various typos
This commit is contained in:
parent
32f131566f
commit
90cabd1673
@ -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:
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user