Пример #1
0
 public async Task <DiscordUserSettings> ChangeSettingsAsync(UserSettingsProperties settings)
 {
     return((await Client.HttpClient.PatchAsync("/users/@me/settings", settings))
            .Deserialize <DiscordUserSettings>().SetClient(Client));
 }
Пример #2
0
 /// <summary>
 /// Changes the user's settings
 /// </summary>
 public DiscordUserSettings ChangeSettings(UserSettingsProperties settings)
 {
     return(ChangeSettingsAsync(settings).GetAwaiter().GetResult());
 }
Пример #3
0
 /// <summary>
 /// Changes the user's settings
 /// </summary>
 public DiscordUserSettings ChangeSettings(UserSettingsProperties settings)
 {
     return(Client.HttpClient.Patch("/users/@me/settings", settings)
            .Deserialize <DiscordUserSettings>().SetClient(Client));
 }