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

        self.add_permission(data);

        self
    }
/// Creates a new permission for the interaction.
Creates a new permission for the interaction.
Creates a new permission for the interaction .
pub fn create_permission<F>(&mut self, f: F) -> &mut Self
    where
        F: FnOnce(
            &mut CreateApplicationCommandPermissionData,
        ) -> &mut CreateApplicationCommandPermissionData,
    {
        let mut data = CreateApplicationCommandPermissionData::default();
        f(&mut data);
        self.add_permission(data);
        self
    }
pub fn create_permission < F > ( & mut self , f : F ) -> & mut Self where F : FnOnce ( & mut CreateApplicationCommandPermissionData , ) -> & mut CreateApplicationCommandPermissionData , { let mut data = CreateApplicationCommandPermissionData :: default ( ) ; f ( & mut data ) ; self . add_permission ( data ) ; self }
Creates a new permission for the interaction.
Creates a new permission for the interaction .
&mut self
f
F