This commit is contained in:
2026-03-19 01:14:46 +01:00
parent 506d4eb111
commit a51c4258c2
13 changed files with 223 additions and 52 deletions
+2 -2
View File
@@ -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(()),