Fixed a big bug

This commit is contained in:
Frisk 2020-01-12 16:21:10 +01:00
parent 092cb98fb0
commit 514e1d742b

View file

@ -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'