Created
September 23, 2017 04:43
-
-
Save Scrxtchy/b6a638b71070ff792fde59c51ebd7cec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #token guild member channel | |
| import requests, json, sys | |
| s = {'Authorization' : sys.argv[1], 'Content-Type':'application/json'} | |
| api = requests.session() | |
| api.headers.update(s) | |
| data = json.dumps({'channel_id': sys.argv[4]}) | |
| api.patch('https://discordapp.com/api/v6/guilds/'+ sys.argv[2] +'/members/' + sys.argv[3], data=data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment