added back testConnection function
this function was originally in discum and was created by Merubokkusu, while doing some tests I realized just how convenient this function was so it's back
@@ -66,6 +66,17 @@ class Client:
self.s.proxies.update(proxies)
self.__gateway_server = GatewayServer(self.__user_token,self.__proxy_host,self.__proxy_port)
+ '''
+ test connection (this function was originally in discum and was created by Merubokkusu)
+ '''
+ def connectionTest(self): #,proxy):
+ url='https://discord.com/api/v6/users/@me/affinities/users'
+ connection = self.s.get(url)
+ if(connection.status_code == 200):
+ print("Connected")
+ else:
+ print("Incorrect Token")
+
'''
discord snowflake to unix timestamp and back
'''
