/// <summary> /// Modifies this <see cref="RestApplicationCommand"/>. /// </summary> /// <param name="func">The delegate containing the properties to modify the command with.</param> /// <param name="options">The options to be used when sending the request.</param> /// <returns> /// The modified command /// </returns> public override async Task ModifyAsync <TArg>(Action <TArg> func, RequestOptions options = null) { var model = await InteractionHelper.ModifyGuildCommandAsync(Discord, this, GuildId, func, options).ConfigureAwait(false); Update(model); }
public static async Task <RestGuildCommand> ModifyGuildApplicationCommandAsync(BaseDiscordClient client, IApplicationCommand command, ulong guildId, ApplicationCommandProperties args, RequestOptions options = null) { var model = await InteractionHelper.ModifyGuildCommandAsync(client, command, guildId, args, options); return(RestGuildCommand.Create(client, model, guildId)); }