mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-10 05:35:06 +00:00
Remove nonce when sending messages.
This commit is contained in:
parent
23ba3253dd
commit
7257ed24d8
@ -32,7 +32,6 @@ import logging
|
|||||||
import weakref
|
import weakref
|
||||||
import datetime
|
import datetime
|
||||||
from email.utils import parsedate_to_datetime
|
from email.utils import parsedate_to_datetime
|
||||||
from random import randint as random_integer
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -279,9 +278,7 @@ class HTTPClient:
|
|||||||
|
|
||||||
def send_message(self, channel_id, content, *, guild_id=None, tts=False, embed=None):
|
def send_message(self, channel_id, content, *, guild_id=None, tts=False, embed=None):
|
||||||
r = Route('POST', '/channels/{channel_id}/messages', channel_id=channel_id)
|
r = Route('POST', '/channels/{channel_id}/messages', channel_id=channel_id)
|
||||||
payload = {
|
payload = {}
|
||||||
'nonce': random_integer(-2**63, 2**63 - 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
if content:
|
if content:
|
||||||
payload['content'] = content
|
payload['content'] = content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user