mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Support enforce_nonce and add random nonce for message creation
This commit is contained in:
@ -197,6 +197,7 @@ def handle_message_parameters(
|
||||
|
||||
if nonce is not None:
|
||||
payload['nonce'] = str(nonce)
|
||||
payload['enforce_nonce'] = True
|
||||
|
||||
if message_reference is not MISSING:
|
||||
payload['message_reference'] = message_reference
|
||||
|
Reference in New Issue
Block a user