wip
This commit is contained in:
@@ -19,7 +19,7 @@ impl CustomInteraction for CommandInteraction {
|
||||
async fn create_text_response(&self, ctx: &Context, content: String) -> Result<(), CorroError> {
|
||||
match self
|
||||
.create_response(
|
||||
&ctx,
|
||||
&ctx.http,
|
||||
CreateInteractionResponse::Message(
|
||||
CreateInteractionResponseMessage::new().content(&content),
|
||||
),
|
||||
@@ -36,7 +36,7 @@ impl CustomInteraction for CommandInteraction {
|
||||
|
||||
async fn edit_text_response(&self, ctx: &Context, content: String) -> Result<(), CorroError> {
|
||||
match self
|
||||
.edit_response(&ctx, EditInteractionResponse::new().content(&content))
|
||||
.edit_response(&ctx.http, EditInteractionResponse::new().content(&content))
|
||||
.await
|
||||
{
|
||||
Ok(_) => Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user