aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-30 10:02:58 -0400
committerRapptz <[email protected]>2021-05-30 10:02:58 -0400
commit267fad9180e2d95f940aebbeea7e0b2d5c2ee107 (patch)
tree178fc7cc4d452a06d2e6fe4632d723aeef37f86d
parentAllow sending View with Interaction.response.send_message (diff)
downloaddiscord.py-267fad9180e2d95f940aebbeea7e0b2d5c2ee107.tar.xz
discord.py-267fad9180e2d95f940aebbeea7e0b2d5c2ee107.zip
Add WebhookType.application
-rw-r--r--discord/enums.py1
-rw-r--r--discord/types/webhook.py2
-rw-r--r--docs/api.rst6
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