[Feature] Support for the new username system (#2696)
* update a lot of stuff * update CDN for new avatar calculation * whoops, forgot to commit * handle `null` values * Remove duplicate line Co-authored-by: Dmitry <dimson-n@users.noreply.github.com> * updates * Apply suggestions from code review Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com> * Apply suggestion Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com> * update `SocketThreadUSer` --------- Co-authored-by: Dmitry <dimson-n@users.noreply.github.com> Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
This commit is contained in:
@@ -59,6 +59,17 @@ namespace Discord.Commands
|
||||
}
|
||||
}
|
||||
|
||||
//By global (display) name
|
||||
{
|
||||
await channelUsers
|
||||
.Where(x => string.Equals(input, x.GlobalName, StringComparison.OrdinalIgnoreCase))
|
||||
.ForEachAsync(channelUser => AddResult(results, channelUser as T, channelUser.GlobalName == input ? 0.65f : 0.55f))
|
||||
.ConfigureAwait(false);
|
||||
|
||||
foreach (var guildUser in guildUsers.Where(x => string.Equals(input, x.GlobalName, StringComparison.OrdinalIgnoreCase)))
|
||||
AddResult(results, guildUser as T, guildUser.GlobalName == input ? 0.60f : 0.50f);
|
||||
}
|
||||
|
||||
//By Username (0.5-0.6)
|
||||
{
|
||||
await channelUsers
|
||||
|
||||
Reference in New Issue
Block a user