refactor(events/mod): passing the rustfmt
This commit is contained in:
parent
3004d99444
commit
04bced81ed
1 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
include!("./mod_gen.rs");
|
include!("./mod_gen.rs");
|
||||||
|
|
||||||
use serenity::all::*;
|
|
||||||
use crate::commands::SlashCommand;
|
use crate::commands::SlashCommand;
|
||||||
|
use serenity::all::*;
|
||||||
|
|
||||||
pub struct Bot {
|
pub struct Bot {
|
||||||
pub commands: Vec<Box<dyn SlashCommand>>,
|
pub commands: Vec<Box<dyn SlashCommand>>,
|
||||||
|
|
@ -9,7 +9,6 @@ pub struct Bot {
|
||||||
|
|
||||||
#[serenity::async_trait]
|
#[serenity::async_trait]
|
||||||
impl EventHandler for Bot {
|
impl EventHandler for Bot {
|
||||||
|
|
||||||
async fn ready(&self, ctx: Context, ready: Ready) {
|
async fn ready(&self, ctx: Context, ready: Ready) {
|
||||||
bot::ready::handle(&ctx, &ready, &self.commands).await;
|
bot::ready::handle(&ctx, &ready, &self.commands).await;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue