public static ClientConnectedAccount ModifyConnectedAccount(this DiscordClient client, ConnectedAccountType type, string connectionId, ConnectionProperties properties) { return(client.ModifyConnectedAccountAsync(type, connectionId, properties).GetAwaiter().GetResult()); }
public void Modify(ConnectionProperties properties) { ModifyAsync(properties).GetAwaiter().GetResult(); }
public static async Task <ClientConnectedAccount> ModifyConnectedAccountAsync(this DiscordClient client, ConnectedAccountType type, string connectionId, ConnectionProperties properties) { return((await client.HttpClient.PatchAsync($"/users/@me/connections/{type.ToString().ToLower()}/{connectionId}", properties)) .Deserialize <ClientConnectedAccount>()); }