mirror of
https://github.com/Mestima/GM-Discord.git
synced 2025-05-05 22:00:14 +00:00
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:
parent
643c8091f4
commit
7b6059a117
@ -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;
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user