Exemplo n.º 1
0
 public void Modify(DiscordApplicationProperties properties)
 {
     _updateProperties(Client.ModifyApplication(Id, properties));
 }
Exemplo n.º 2
0
 public void Modify(DiscordApplicationProperties properties)
 {
     ModifyAsync(properties).GetAwaiter().GetResult();
 }
Exemplo n.º 3
0
 public async Task ModifyAsync(DiscordApplicationProperties properties)
 {
     Update(await Client.ModifyApplicationAsync(Id, properties));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Modifies an OAuth2 application
 /// </summary>
 /// <param name="id">The application's ID</param>
 /// <param name="properties">Your changes</param>
 public static OAuth2Application ModifyApplication(this DiscordClient client, ulong id, DiscordApplicationProperties properties)
 {
     return(client.HttpClient.Patch("/applications/" + id, properties).Deserialize <OAuth2Application>().SetClient(client));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Modifies an OAuth2 application
 /// </summary>
 /// <param name="id">The application's ID</param>
 /// <param name="properties">Your changes</param>
 public static OAuth2Application ModifyApplication(this DiscordClient client, ulong id, DiscordApplicationProperties properties)
 {
     return(client.ModifyApplicationAsync(id, properties).GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 public static async Task <OAuth2Application> ModifyApplicationAsync(this DiscordClient client, ulong id, DiscordApplicationProperties properties)
 {
     return((await client.HttpClient.PatchAsync("/applications/" + id, properties)).Deserialize <OAuth2Application>().SetClient(client));
 }