mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add applied_tags param to Webhook.send
This commit is contained in:
@ -153,6 +153,7 @@ def handle_message_parameters(
|
||||
mention_author: Optional[bool] = None,
|
||||
thread_name: str = MISSING,
|
||||
channel_payload: Dict[str, Any] = MISSING,
|
||||
applied_tags: Optional[SnowflakeList] = MISSING,
|
||||
) -> MultipartParameters:
|
||||
if files is not MISSING and file is not MISSING:
|
||||
raise TypeError('Cannot mix file and files keyword arguments.')
|
||||
@ -243,6 +244,12 @@ def handle_message_parameters(
|
||||
|
||||
payload['attachments'] = attachments_payload
|
||||
|
||||
if applied_tags is not MISSING:
|
||||
if applied_tags is not None:
|
||||
payload['applied_tags'] = applied_tags
|
||||
else:
|
||||
payload['applied_tags'] = []
|
||||
|
||||
if channel_payload is not MISSING:
|
||||
payload = {
|
||||
'message': payload,
|
||||
|
Reference in New Issue
Block a user