-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update serenity * fix: make clippy happy
- Loading branch information
Showing
27 changed files
with
1,126 additions
and
1,164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
mod handler; | ||
pub mod structs; | ||
|
||
pub mod macros { | ||
pub use slash_command_macros::command; | ||
} | ||
|
||
pub use handler::Handler; | ||
|
||
#[macro_export] | ||
macro_rules! create_framework { | ||
($token:expr, $id:expr $(, $c:ident )*) => { | ||
{ | ||
okto_framework::paste_expr! { | ||
let mut fr = okto_framework::Handler::new(); | ||
$( | ||
fr.add_command(&[<$c _COMMAND>]).unwrap(); | ||
)* | ||
let mut http = serenity::http::Http::new_with_application_id($token, $id); | ||
fr.upload_commands(&http).await.expect("Can't upload commands"); | ||
fr | ||
} | ||
} | ||
} | ||
} | ||
|
||
#[doc(hidden)] | ||
#[allow(unused_imports)] | ||
pub use paste::expr as paste_expr; | ||
mod handler; | ||
pub mod structs; | ||
|
||
pub mod macros { | ||
pub use slash_command_macros::command; | ||
} | ||
|
||
pub use handler::Handler; | ||
|
||
#[macro_export] | ||
macro_rules! create_framework { | ||
($token:expr, $id:expr $(, $c:ident )*) => { | ||
{ | ||
okto_framework::paste_expr! { | ||
let mut fr = okto_framework::Handler::new(); | ||
$( | ||
fr.add_command(&[<$c _COMMAND>]).unwrap(); | ||
)* | ||
let mut http = serenity::http::Http::new($token); | ||
http.set_application_id($id); | ||
fr.upload_commands(&http).await.expect("Can't upload commands"); | ||
fr | ||
} | ||
} | ||
} | ||
} | ||
|
||
#[doc(hidden)] | ||
#[allow(unused_imports)] | ||
pub use paste::expr as paste_expr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.