Ejemplo n.º 1
0
 public static ApplicationCommand ModifyGlobalCommand(this DiscordClient client, ulong appId, ulong commandId, ApplicationCommandProperties properties) => client.ModifyGlobalCommandAsync(appId, commandId, properties).GetAwaiter().GetResult();
Ejemplo n.º 2
0
 public void Modify(ApplicationCommandProperties properties) => ModifyAsync(properties).GetAwaiter().GetResult();
Ejemplo n.º 3
0
 public static async Task <ApplicationCommand> ModifyGlobalCommandAsync(this DiscordClient client, ulong appId, ulong commandId, ApplicationCommandProperties properties) =>
 (await client.HttpClient.PatchAsync($"/applications/{appId}/commands/{commandId}", properties)).Deserialize <ApplicationCommand>().SetClient(client);
Ejemplo n.º 4
0
 public async Task ModifyAsync(ApplicationCommandProperties properties) => Update(await Client.ModifyGlobalCommandAsync(ApplicationId, Id, properties));