mirror of
				https://github.com/Mestima/GM-Discord.git
				synced 2025-10-31 09:02:35 +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:
		| @ -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; | ||||||
| ?> | ?> | ||||||
		Reference in New Issue
	
	Block a user
	 RanchTheDeer
					RanchTheDeer