mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-13 13:25:26 +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
|
# 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
|
# 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
|
# 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
|
return (msg.channel if isinstance(msg.channel, PrivateChannel) else msg.author.top_role).id # type: ignore
|
||||||
|
|
||||||
def __call__(self, msg: Message) -> Any:
|
def __call__(self, msg: Message) -> Any:
|
||||||
|
@ -58,7 +58,7 @@ class TextInput(Item[V]):
|
|||||||
label: :class:`str`
|
label: :class:`str`
|
||||||
The label to display above the text input.
|
The label to display above the text input.
|
||||||
custom_id: :class:`str`
|
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.
|
If not given then one is generated for you.
|
||||||
style: :class:`discord.TextStyle`
|
style: :class:`discord.TextStyle`
|
||||||
The style of the text input.
|
The style of the text input.
|
||||||
|
@ -406,9 +406,9 @@ class AsyncWebhookAdapter:
|
|||||||
) -> Response[None]:
|
) -> Response[None]:
|
||||||
r = Route(
|
r = Route(
|
||||||
'DELETE',
|
'DELETE',
|
||||||
'/webhooks/{webhook_id}/{wehook_token}/messages/@original',
|
'/webhooks/{webhook_id}/{webhook_token}/messages/@original',
|
||||||
webhook_id=application_id,
|
webhook_id=application_id,
|
||||||
wehook_token=token,
|
webhook_token=token,
|
||||||
)
|
)
|
||||||
return self.request(r, session=session)
|
return self.request(r, session=session)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user