not-ilinked / Anarchy

The superior Discord API wrapper
https://anarchyteam.dev
208 stars 45 forks source link

RedeemGift function stopped working #3183

Closed ghost closed 3 years ago

ghost commented 3 years ago

So basically I made a nitro sniper and suddenly it stopped working without editing anything in code, I shared the files with some friends and it also stopped working for them (without editing code) so I think the issue is not on my side, exemple of code that doesn't work :

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Discord; using Discord.Gateway;

namespace Test { class Program { static DiscordSocketClient client; static void Main(string[] args) { client = new DiscordSocketClient(); client.Login("Discord Token"); client.OnLoggedIn += Client_OnLoggedIn;

        Thread.Sleep(-1);
    }

    private static void Client_OnLoggedIn(DiscordSocketClient client, LoginEventArgs args)
    {
        try
        {
            Console.WriteLine("Trying to redeem");
            client.RedeemGift("nsnfKnsdfnjfs");
            Console.WriteLine("Redeemed");
        }
        catch (Exception)
        {
            Console.WriteLine("There was an error");
        }
    }
}

}

ghost commented 3 years ago

Started working again out of nowhere, idk