Add WebhookType.application

This commit is contained in:
Rapptz 2021-05-30 10:02:58 -04:00
parent c6f3ed1af4
commit 267fad9180
3 changed files with 8 additions and 1 deletions

View File

@ -417,6 +417,7 @@ class TeamMembershipState(Enum):
class WebhookType(Enum):
incoming = 1
channel_follower = 2
application = 3
class ExpireBehaviour(Enum):
remove_role = 0

View File

@ -41,7 +41,7 @@ class _WebhookOptional(TypedDict, total=False):
token: str
WebhookType = Literal[1, 2]
WebhookType = Literal[1, 2, 3]
class _FollowerWebhookOptional(TypedDict, total=False):

View File

@ -2018,6 +2018,12 @@ of :class:`enum.Enum`.
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
Represents the behaviour the :class:`Integration` should perform