Exemple #1
0
        public static async Task <AbbybotUser> GetUserFromSocketUser(SocketUser su)
        {
            var abbybotuser = new AbbybotUser();
            await abbybotuser.Init(su);

            return(abbybotuser);
        }
Exemple #2
0
        public static async Task <AbbybotUser> GetUserFromSocketGuildUser(ulong guildId, ulong sguId)
        {
            var sgu         = Apis.Discord.__client.GetGuild(guildId).GetUser(sguId);
            var abbybotuser = new AbbybotUser();
            await abbybotuser.Init(sgu);

            return(abbybotuser);
        }