Browse Source

Merge branch 'master' of github.com:dolfies/discord.py-self

pull/10109/head
dolfies 3 years ago
parent
commit
a4df148186
  1. 2
      discord/http.py

2
discord/http.py

@ -470,7 +470,7 @@ class HTTPClient:
if reason:
headers['X-Audit-Log-Reason'] = _uriquote(reason)
if payload := kwargs.pop('json', None) is not None:
if (payload := kwargs.pop('json', None)) is not None:
headers['Content-Type'] = 'application/json'
kwargs['data'] = utils._to_json(payload)

Loading…
Cancel
Save