refactor: display user id, not session id, in /who command

This commit is contained in:
Oliver Booth 2023-08-26 21:37:30 +01:00
parent 25d725e1b3
commit aaacb3027b
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 2 additions and 2 deletions

View File

@ -41,12 +41,12 @@ internal sealed class WhoCommand : InteractionModuleBase<SocketInteractionContex
{ {
if (avatar.IsBot) if (avatar.IsBot)
{ {
botsBuilder.AppendLine($"* {avatar.Name} ({avatar.Session})"); botsBuilder.AppendLine($"* {avatar.Name} ({avatar.User.Id})");
botCount++; botCount++;
} }
else else
{ {
userBuilder.AppendLine($"* {avatar.Name} ({avatar.Session})"); userBuilder.AppendLine($"* {avatar.Name} ({avatar.User.Id})");
userCount++; userCount++;
} }
} }