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