fix: ApiClient.CurrentUser being null (#1864)

This commit is contained in:
Paulo
2021-06-01 11:14:55 -03:00
committed by GitHub
parent c2e87f56c0
commit 08507c0603
2 changed files with 2 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ namespace Discord.Rest
/// <summary>
/// Gets the logged-in user.
/// </summary>
public new RestSelfUser CurrentUser => base.CurrentUser as RestSelfUser;
public new RestSelfUser CurrentUser { get => base.CurrentUser as RestSelfUser; internal set => base.CurrentUser = value; }
/// <inheritdoc />
public DiscordRestClient() : this(new DiscordRestConfig()) { }