Struct pikadick_slash_framework::Framework
source · pub struct Framework { /* private fields */ }
Expand description
A framework
Implementations§
source§impl Framework
impl Framework
sourcepub async fn register(
&self,
ctx: Context,
test_guild_id: Option<GuildId>
) -> Result<(), Error>
pub async fn register( &self, ctx: Context, test_guild_id: Option<GuildId> ) -> Result<(), Error>
Register the framework.
test_guild_id
is an optional guild where the commands will be registered as guild commands,
so they update faster for testing purposes.
sourcepub async fn process_interaction_create(
&self,
ctx: Context,
interaction: Interaction
)
pub async fn process_interaction_create( &self, ctx: Context, interaction: Interaction )
Process an interaction create event
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Framework
impl Send for Framework
impl Sync for Framework
impl Unpin for Framework
impl !UnwindSafe for Framework
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more