pub fn create_application_command<F>(&mut self, f: F) -> &mut Self
    where
        F: FnOnce(
            &mut CreateApplicationCommandPermissions,
        ) -> &mut CreateApplicationCommandPermissions,
    {
        let mut data = CreateApplicationCommandPermissions::default();
        f(&mut data);

        self.add_application_command(data);

        self
    }
/// Creates a new application command.
Creates a new application command.
Creates a new application command .
pub fn create_application_command<F>(&mut self, f: F) -> &mut Self
    where
        F: FnOnce(
            &mut CreateApplicationCommandPermissions,
        ) -> &mut CreateApplicationCommandPermissions,
    {
        let mut data = CreateApplicationCommandPermissions::default();
        f(&mut data);
        self.add_application_command(data);
        self
    }
pub fn create_application_command < F > ( & mut self , f : F ) -> & mut Self where F : FnOnce ( & mut CreateApplicationCommandPermissions , ) -> & mut CreateApplicationCommandPermissions , { let mut data = CreateApplicationCommandPermissions :: default ( ) ; f ( & mut data ) ; self . add_application_command ( data ) ; self }
Creates a new application command.
Creates a new application command .
&mut self
f
F