public static ApplicationCommand ModifyGlobalCommand(this DiscordClient client, ulong appId, ulong commandId, ApplicationCommandProperties properties) => client.ModifyGlobalCommandAsync(appId, commandId, properties).GetAwaiter().GetResult();
public void Modify(ApplicationCommandProperties properties) => ModifyAsync(properties).GetAwaiter().GetResult();
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);
public async Task ModifyAsync(ApplicationCommandProperties properties) => Update(await Client.ModifyGlobalCommandAsync(ApplicationId, Id, properties));