Creates a temporary flask server for discord authentication. Easily changeable to return user details, servers, and connections. Default setup is to check to see if a user is a member of a specific server. Returns an object containing user details and whether they are authorized or not. Originally designed for Mist #0069.
With no changes to the script besides the sever ID to check for, here's what's returned for different cases.