mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fixed a big bug
This commit is contained in:
parent
092cb98fb0
commit
514e1d742b
|
@ -93,7 +93,7 @@ def profile_field_name(name, embed):
|
|||
|
||||
def send_to_discord_webhook(data):
|
||||
header = settings["header"]
|
||||
if "content" not in data:
|
||||
if isinstance(data, str):
|
||||
header['Content-Type'] = 'application/json'
|
||||
else:
|
||||
header['Content-Type'] = 'application/x-www-form-urlencoded'
|
||||
|
|
Loading…
Reference in a new issue