Esempio n. 1
0
 public static ClientConnectedAccount ModifyConnectedAccount(this DiscordClient client, ConnectedAccountType type, string connectionId, ConnectionProperties properties)
 {
     return(client.ModifyConnectedAccountAsync(type, connectionId, properties).GetAwaiter().GetResult());
 }
Esempio n. 2
0
 public void Modify(ConnectionProperties properties)
 {
     ModifyAsync(properties).GetAwaiter().GetResult();
 }
Esempio n. 3
0
 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>());
 }