private async Task Client_GuildMemberUpdated(Cacheable <SocketGuildUser, ulong> before, SocketGuildUser user) { var guild = GuildSettings.GetGuildSettings(user.Guild); var userBefore = before.Value; if (userBefore.DisplayName() != user.DisplayName()) { EntityConverter.ConvertUser(user).Name = user.DisplayName(); _ = guild.TestCommandChannel .SendMessageAsync( $"{user.Mention} changed Nickname from {userBefore.DisplayName()} to {user.DisplayName()}"); } //Console.WriteLine($"Updated: before:{userBefore.IsPending.GetValueOrDefault()} after:{user.IsPending.GetValueOrDefault()}"); //if (userBefore.IsPending.GetValueOrDefault() == true && user.IsPending.GetValueOrDefault() == false) //{ // await SendWelcomeMessage(user); // Console.WriteLine($"{user.Username} joined"); //} //if (userBefore.PremiumSince.HasValue != user.PremiumSince.HasValue) //{ // var isBoosting = user.PremiumSince.HasValue; // if (isBoosting) // { // _ = guild.MainChannel // .SendMessageAsync( // $"<:Exclamatory:549529360604856323> {user.Mention} is now boosting the server."); // } // else // { // _ = guild.TestCommandChannel // .SendMessageAsync( // $"<:Exclamatory:549529360604856323> {user.Mention} is no longer boosting the server."); // } //} await Task.CompletedTask; }