Add WebhookType.application
This commit is contained in:
parent
c6f3ed1af4
commit
267fad9180
@ -417,6 +417,7 @@ class TeamMembershipState(Enum):
|
|||||||
class WebhookType(Enum):
|
class WebhookType(Enum):
|
||||||
incoming = 1
|
incoming = 1
|
||||||
channel_follower = 2
|
channel_follower = 2
|
||||||
|
application = 3
|
||||||
|
|
||||||
class ExpireBehaviour(Enum):
|
class ExpireBehaviour(Enum):
|
||||||
remove_role = 0
|
remove_role = 0
|
||||||
|
@ -41,7 +41,7 @@ class _WebhookOptional(TypedDict, total=False):
|
|||||||
token: str
|
token: str
|
||||||
|
|
||||||
|
|
||||||
WebhookType = Literal[1, 2]
|
WebhookType = Literal[1, 2, 3]
|
||||||
|
|
||||||
|
|
||||||
class _FollowerWebhookOptional(TypedDict, total=False):
|
class _FollowerWebhookOptional(TypedDict, total=False):
|
||||||
|
@ -2018,6 +2018,12 @@ of :class:`enum.Enum`.
|
|||||||
|
|
||||||
Represents a webhook that is internally managed by Discord, used for following channels.
|
Represents a webhook that is internally managed by Discord, used for following channels.
|
||||||
|
|
||||||
|
.. attribute:: application
|
||||||
|
|
||||||
|
Represents a webhook that is used for interactions or applications.
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
.. class:: ExpireBehaviour
|
.. class:: ExpireBehaviour
|
||||||
|
|
||||||
Represents the behaviour the :class:`Integration` should perform
|
Represents the behaviour the :class:`Integration` should perform
|
||||||
|
Loading…
x
Reference in New Issue
Block a user