mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add WebhookType.application
This commit is contained in:
parent
c6f3ed1af4
commit
267fad9180
@ -417,6 +417,7 @@ class TeamMembershipState(Enum):
|
||||
class WebhookType(Enum):
|
||||
incoming = 1
|
||||
channel_follower = 2
|
||||
application = 3
|
||||
|
||||
class ExpireBehaviour(Enum):
|
||||
remove_role = 0
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user