Fixed SelfUser.Modify when no username is provided
This commit is contained in:
@@ -40,6 +40,10 @@ namespace Discord
|
|||||||
|
|
||||||
var args = new ModifyCurrentUserParams();
|
var args = new ModifyCurrentUserParams();
|
||||||
func(args);
|
func(args);
|
||||||
|
|
||||||
|
if (!args.Username.IsSpecified)
|
||||||
|
args.Username = Username;
|
||||||
|
|
||||||
var model = await Discord.ApiClient.ModifySelfAsync(args).ConfigureAwait(false);
|
var model = await Discord.ApiClient.ModifySelfAsync(args).ConfigureAwait(false);
|
||||||
Update(model, UpdateSource.Rest);
|
Update(model, UpdateSource.Rest);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user