This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
-
-
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.
requires twilight-rs/twilight#159 to fixed to be able to finish this later
- Loading branch information
1 parent
72d6be9
commit c39619e
Showing
8 changed files
with
367 additions
and
215 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
use crate::core::Context; | ||
use crate::parser::Parser; | ||
use crate::CommandResult; | ||
use log::info; | ||
use std::sync::Arc; | ||
use twilight::model::channel::Message; | ||
|
||
pub async fn quote(ctx: Arc<Context>, msg: Message, parser: Parser) -> CommandResult { | ||
pub async fn quote(_ctx: Arc<Context>, msg: Message, mut parser: Parser) -> CommandResult { | ||
let message = parser.get_message(msg.author.id).await?; | ||
info!("{:?}", message); | ||
Ok(()) | ||
} |
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
Oops, something went wrong.