From cadc71153378516867171c442cfba84a8d4f1974 Mon Sep 17 00:00:00 2001 From: RogueException Date: Wed, 6 Jan 2016 04:45:58 -0400 Subject: [PATCH] Added several profiles to DiscordClient.CurrentUser --- src/Discord.Net/Models/Profile.cs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net/Models/Profile.cs b/src/Discord.Net/Models/Profile.cs index 6c8f327e3..ac1fcc015 100644 --- a/src/Discord.Net/Models/Profile.cs +++ b/src/Discord.Net/Models/Profile.cs @@ -12,9 +12,23 @@ namespace Discord /// Gets the unique identifier for this user. public ulong Id { get; } + /// Gets the global name of this user. + public string Name => Client.PrivateUser.Name; + /// Gets the unique identifier for this user's current avatar. + public string AvatarId => Client.PrivateUser.AvatarId; + /// Gets the URL to this user's current avatar. + public string AvatarUrl => User.GetAvatarUrl(Id, AvatarId); + /// Gets an id uniquely identifying from others with the same name. + public ushort Discriminator => Client.PrivateUser.Discriminator; + /// Gets the name of the game this user is currently playing. + public string CurrentGame => Client.PrivateUser.CurrentGame; + /// Gets the current status for this user. + public UserStatus Status => Client.PrivateUser.Status; + /// Returns the string used to mention this user. + public string Mention => $"<@{Id}>"; - /// Gets the email for this user. - public string Email { get; private set; } + /// Gets the email for this user. + public string Email { get; private set; } /// Gets if the email for this user has been verified. public bool? IsVerified { get; private set; }