Skip to content

Instantly share code, notes, and snippets.

@Scrxtchy
Created September 23, 2017 04:43
Show Gist options
  • Select an option

  • Save Scrxtchy/b6a638b71070ff792fde59c51ebd7cec to your computer and use it in GitHub Desktop.

Select an option

Save Scrxtchy/b6a638b71070ff792fde59c51ebd7cec to your computer and use it in GitHub Desktop.
#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