pub trait FromOptions: Debug + Sendwhere
Self: Sized,{
// Required method
fn from_options(
interaction: &CommandInteraction
) -> Result<Self, ConvertError>;
// Provided method
fn get_argument_params() -> Result<Vec<ArgumentParam>, BuilderError> { ... }
}
Expand description
A trait that allows converting from an application command interaction
Required Methods§
sourcefn from_options(interaction: &CommandInteraction) -> Result<Self, ConvertError>
fn from_options(interaction: &CommandInteraction) -> Result<Self, ConvertError>
Make arguments from a CommandInteraction
Provided Methods§
sourcefn get_argument_params() -> Result<Vec<ArgumentParam>, BuilderError>
fn get_argument_params() -> Result<Vec<ArgumentParam>, BuilderError>
Get the argument paramss of this object
Object Safety§
This trait is not object safe.