diff --git a/discord/enums.py b/discord/enums.py index aaa59b25b..f34d135c6 100644 --- a/discord/enums.py +++ b/discord/enums.py @@ -417,6 +417,7 @@ class TeamMembershipState(Enum): class WebhookType(Enum): incoming = 1 channel_follower = 2 + application = 3 class ExpireBehaviour(Enum): remove_role = 0 diff --git a/discord/types/webhook.py b/discord/types/webhook.py index 851b5ec7a..c526d750b 100644 --- a/discord/types/webhook.py +++ b/discord/types/webhook.py @@ -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): diff --git a/docs/api.rst b/docs/api.rst index 3971d4b7e..27604ae46 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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