Example #1
0
        public static void JoinServer(string Token, string Invite, LoadWindow Window)
        {
            var Rest = new RestClient("https://discordapp.com/api/v6/")
            {
                UserAgent = GetUserAgent(), Proxy = null
            };

            WebInterface.VerifyWebsite(Window);

            var Request = new RestRequest("invite/" + Invite, Method.POST);

            Request.AddHeader("Authorization", Token);
            Request.AddHeader("Origin", "https:///discordapp.com");
            Request.AddHeader("Referer", "https:///discord.gg/" + Invite);

            Rest.Execute(Request);
        }