From 7b6059a11779cd587863a79be68b9056461562d4 Mon Sep 17 00:00:00 2001 From: RanchTheDeer <62909681+RanchTheDeer@users.noreply.github.com> Date: Fri, 31 Jul 2020 19:40:40 +0100 Subject: [PATCH] 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. --- web/request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/request.php b/web/request.php index dc71d12..3b05cec 100644 --- a/web/request.php +++ b/web/request.php @@ -20,6 +20,6 @@ $channel = $_GET['channel']; $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; -?> \ No newline at end of file +?>