Skip to content

Commit 4051a0c

Browse files
committed
Revert "Change AllowedMentionsData to use Sequence"
This reverts commit 6a53870. Similar to how Dict will be used everywhere, it is best to also use List everywhere for consistency and accuracy. It's better to have a consistent API than being able to pass a Tuple in the construction of an AllowedMentionsData instance.
1 parent 7e4e868 commit 4051a0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

discord_typings/resources/channel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import TYPE_CHECKING, List, Optional, Sequence, Union
3+
from typing import TYPE_CHECKING, List, Optional, Union
44

55
from typing_extensions import Literal, NotRequired, TypedDict, final
66

@@ -415,9 +415,9 @@ class ChannelMentionData(TypedDict):
415415

416416
@final
417417
class AllowedMentionsData(TypedDict):
418-
parse: NotRequired[Sequence[Literal['roles', 'users', 'everyone']]]
419-
roles: NotRequired[Sequence[Snowflake]]
420-
users: NotRequired[Sequence[Snowflake]]
418+
parse: NotRequired[List[Literal['roles', 'users', 'everyone']]]
419+
roles: NotRequired[List[Snowflake]]
420+
users: NotRequired[List[Snowflake]]
421421
replied_user: NotRequired[bool]
422422

423423

0 commit comments

Comments
 (0)