Skip to content

Commit

Permalink
As discord have decided that url encoded form data was not good enoug…
Browse files Browse the repository at this point in the history
…h anymore, the scripts have been updated to use application/json instead.

Thanks to EmilSuave in SecondLife for pointing out that this change had occurred.
  • Loading branch information
TBGRenfold committed Dec 11, 2019
1 parent fafcf86 commit 86d4575
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion discord_embed_example.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ key PostToDiscord(key AvatarID, string Message)
return llHTTPRequest(WEBHOOK_URL + WEBHOOK_CHANNEL + "/" + WEBHOOK_TOKEN + query_string,
[
HTTP_METHOD, "POST",
HTTP_MIMETYPE, "application/x-www-form-urlencoded",
HTTP_MIMETYPE, "application/json",
HTTP_VERIFY_CERT,TRUE,
HTTP_VERBOSE_THROTTLE, TRUE,
HTTP_PRAGMA_NO_CACHE, TRUE ], llList2Json(JSON_OBJECT, json));
Expand Down
2 changes: 1 addition & 1 deletion discord_example.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ key PostToDiscord(key AvatarID, string Message)
return llHTTPRequest(WEBHOOK_URL + WEBHOOK_CHANNEL + "/" + WEBHOOK_TOKEN + query_string,
[
HTTP_METHOD, "POST",
HTTP_MIMETYPE, "application/x-www-form-urlencoded",
HTTP_MIMETYPE, "application/json",
HTTP_VERIFY_CERT,TRUE,
HTTP_VERBOSE_THROTTLE, TRUE,
HTTP_PRAGMA_NO_CACHE, TRUE ], llList2Json(JSON_OBJECT, json));
Expand Down
2 changes: 1 addition & 1 deletion discord_full_embed_example.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ key PostToDiscord(key AvatarID, string Message)
return llHTTPRequest(WEBHOOK_URL + WEBHOOK_CHANNEL + "/" + WEBHOOK_TOKEN + query_string,
[
HTTP_METHOD, "POST",
HTTP_MIMETYPE, "application/x-www-form-urlencoded",
HTTP_MIMETYPE, "application/json",
HTTP_VERIFY_CERT,TRUE,
HTTP_VERBOSE_THROTTLE, TRUE,
HTTP_PRAGMA_NO_CACHE, TRUE ], llList2Json(JSON_OBJECT, json));
Expand Down

0 comments on commit 86d4575

Please sign in to comment.