Add DisplayName property to IGuildUser. (#2107)
This commit is contained in:
@@ -19,7 +19,8 @@ namespace Discord.Rest
|
||||
private long? _timedOutTicks;
|
||||
private long? _joinedAtTicks;
|
||||
private ImmutableArray<ulong> _roleIds;
|
||||
|
||||
/// <inheritdoc />
|
||||
public string DisplayName => Nickname ?? Username;
|
||||
/// <inheritdoc />
|
||||
public string Nickname { get; private set; }
|
||||
/// <inheritdoc/>
|
||||
|
||||
@@ -52,6 +52,8 @@ namespace Discord.Rest
|
||||
/// <inheritdoc />
|
||||
DateTimeOffset? IGuildUser.JoinedAt => null;
|
||||
/// <inheritdoc />
|
||||
string IGuildUser.DisplayName => null;
|
||||
/// <inheritdoc />
|
||||
string IGuildUser.Nickname => null;
|
||||
/// <inheritdoc />
|
||||
string IGuildUser.GuildAvatarId => null;
|
||||
|
||||
Reference in New Issue
Block a user