/// Edits a global command by its Id.
Edits a global command by its Id.
Edits a global command by its Id .
pub async fn edit_global_application_command<F>(
        http: impl AsRef<Http>,
        command_id: CommandId,
        f: F,
    ) -> Result<ApplicationCommand>
    where
        F: FnOnce(&mut CreateApplicationCommand) -> &mut CreateApplicationCommand,
    {
        let map = ApplicationCommand::build_application_command(f);
        http.as_ref().edit_global_application_command(command_id.into(), &Value::Object(map)).await
    }
pub async fn edit_global_application_command < F > ( http : impl AsRef < Http > , command_id : CommandId , f : F , ) -> Result < ApplicationCommand > where F : FnOnce ( & mut CreateApplicationCommand ) -> & mut CreateApplicationCommand , { let map = ApplicationCommand :: build_application_command ( f ) ; http . as_ref ( ) . edit_global_application_command ( command_id . into ( ) , & Value :: Object ( map ) ) . await }
Edits a global command by its Id.
Edits a global command by its Id .
http
impl AsRef<Http>
command_id
CommandId
f
F