Fix nonce being sent even when not specified

This commit is contained in:
Rapptz 2022-02-18 23:15:46 -05:00
parent 4e331704ae
commit e14153ddcb

View File

@ -184,7 +184,7 @@ def handle_message_parameters(
else: else:
payload['components'] = [] payload['components'] = []
if nonce is not MISSING: if nonce is not None:
payload['nonce'] = str(nonce) payload['nonce'] = str(nonce)
if message_reference is not MISSING: if message_reference is not MISSING: