aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-08-22 02:35:58 -0400
committerRapptz <[email protected]>2021-08-22 02:35:58 -0400
commit4a7220161774378e83f35ce2c115a13496304656 (patch)
tree0bd0408b228937ef44ae4259a5ffafba886e0a36 /discord/webhook
parentMake global log variable in modules private (diff)
downloaddiscord.py-4a7220161774378e83f35ce2c115a13496304656.tar.xz
discord.py-4a7220161774378e83f35ce2c115a13496304656.zip
Make json conversion functions private
Diffstat (limited to 'discord/webhook')
-rw-r--r--discord/webhook/async_.py4
-rw-r--r--discord/webhook/sync.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py
index f78ddbc3..6ee4ce5c 100644
--- a/discord/webhook/async_.py
+++ b/discord/webhook/async_.py
@@ -116,7 +116,7 @@ class AsyncWebhookAdapter:
if payload is not None:
headers['Content-Type'] = 'application/json'
- to_send = utils.to_json(payload)
+ to_send = utils._to_json(payload)
if auth_token is not None:
headers['Authorization'] = f'Bot {auth_token}'
@@ -481,7 +481,7 @@ def handle_message_parameters(
files = [file]
if files:
- multipart.append({'name': 'payload_json', 'value': utils.to_json(payload)})
+ multipart.append({'name': 'payload_json', 'value': utils._to_json(payload)})
payload = None
if len(files) == 1:
file = files[0]
diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py
index a7efc7d0..a3b2f156 100644
--- a/discord/webhook/sync.py
+++ b/discord/webhook/sync.py
@@ -117,7 +117,7 @@ class WebhookAdapter:
if payload is not None:
headers['Content-Type'] = 'application/json'
- to_send = utils.to_json(payload)
+ to_send = utils._to_json(payload)
if auth_token is not None:
headers['Authorization'] = f'Bot {auth_token}'