diff options
| author | Rapptz <[email protected]> | 2021-05-30 10:02:58 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-05-30 10:02:58 -0400 |
| commit | 267fad9180e2d95f940aebbeea7e0b2d5c2ee107 (patch) | |
| tree | 178fc7cc4d452a06d2e6fe4632d723aeef37f86d | |
| parent | Allow sending View with Interaction.response.send_message (diff) | |
| download | discord.py-267fad9180e2d95f940aebbeea7e0b2d5c2ee107.tar.xz discord.py-267fad9180e2d95f940aebbeea7e0b2d5c2ee107.zip | |
Add WebhookType.application
| -rw-r--r-- | discord/enums.py | 1 | ||||
| -rw-r--r-- | discord/types/webhook.py | 2 | ||||
| -rw-r--r-- | docs/api.rst | 6 |
3 files changed, 8 insertions, 1 deletions
diff --git a/discord/enums.py b/discord/enums.py index aaa59b25..f34d135c 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 851b5ec7..c526d750 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 3971d4b7..27604ae4 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 |