Updated request.php to fix results not retrieving

All that has changed is the line:
$result = file_get_contents_utf8("https://discordapp.com/api/channels/" . $channel . "/messages?token=" . $token);
has been changed to:
$result = file_get_contents_utf8("https://discordapp.com/api/channels/" . $channel . "/messages?token=Bot%20" . $token);
due to the fact that the Discord API now requries the word "Bot" before providing the key in requests.
This commit is contained in:
RanchTheDeer 2020-07-31 19:40:40 +01:00 committed by GitHub
parent 643c8091f4
commit 7b6059a117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,6 @@
$channel = $_GET['channel']; $channel = $_GET['channel'];
$token = $_GET['token']; $token = $_GET['token'];
$result = file_get_contents_utf8("https://discordapp.com/api/channels/" . $channel . "/messages?token=" . $token); $result = file_get_contents_utf8("https://discordapp.com/api/channels/" . $channel . "/messages?token=Bot%20" . $token);
echo $result; echo $result;
?> ?>