aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-02-27 17:56:22 -0500
committerRapptz <[email protected]>2017-02-27 18:02:38 -0500
commit7257ed24d859f049578f3f5b7067ce3f49491775 (patch)
tree2e19f27ca04a5a84d9eecda3638de54265260ba5
parentVersion bump to v0.16.6 (diff)
downloaddiscord.py-7257ed24d859f049578f3f5b7067ce3f49491775.tar.xz
discord.py-7257ed24d859f049578f3f5b7067ce3f49491775.zip
Remove nonce when sending messages.
-rw-r--r--discord/http.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/discord/http.py b/discord/http.py
index a544a5aa..43c31c69 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -32,7 +32,6 @@ import logging
import weakref
import datetime
from email.utils import parsedate_to_datetime
-from random import randint as random_integer
log = logging.getLogger(__name__)
@@ -279,9 +278,7 @@ class HTTPClient:
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)
- payload = {
- 'nonce': random_integer(-2**63, 2**63 - 1)
- }
+ payload = {}
if content:
payload['content'] = content