You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
silent: Should this message be sent without triggering a notification.
68
70
flags: Message flags to apply.
69
71
delete_after: Delete message after this many seconds.
72
+
nonce: Used to verify a message was sent. Can be up to 25 characters.
73
+
enforce_nonce: If enabled and nonce is present, it will be checked for uniqueness in the past few minutes. \
74
+
If another message was created by the same author with the same nonce, that message will be returned \
75
+
and no new message will be created.
70
76
71
77
Returns:
72
78
New message object that was sent.
@@ -95,6 +101,9 @@ async def send(
95
101
"Attachments are not files. Attachments only contain metadata about the file, not the file itself - to send an attachment, you need to download it first. Check Attachment.url"
96
102
)
97
103
104
+
ifenforce_nonceandnotnonce:
105
+
raiseValueError("You must provide a nonce to use enforce_nonce.")
0 commit comments