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