From 751933f0683f71127e78a82d1fc54444223befc6 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 27 Feb 2017 17:56:22 -0500 Subject: [PATCH] Remove nonce when sending messages. --- discord/http.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/discord/http.py b/discord/http.py index b253449c8..baa9a7490 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__) @@ -291,9 +290,7 @@ class HTTPClient: def send_message(self, channel_id, content, *, 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