From 5bec27677e232ef568dab0a8ef04e8b56360bf2c Mon Sep 17 00:00:00 2001 From: Benjamin Sherriff Date: Wed, 26 Jul 2023 16:05:03 -0400 Subject: [PATCH] Moved typing to proper channel --- src/commands/oai.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/oai.rs b/src/commands/oai.rs index fbc55b9..1576be2 100644 --- a/src/commands/oai.rs +++ b/src/commands/oai.rs @@ -189,7 +189,6 @@ impl OAI { pub async fn generate_response(ctx: &Context, msg: &Message, oai: &OAI, pool: &Pool>) { debug!("Generating response for message: {}", msg.content); - let typing = msg.channel_id.start_typing(&ctx.http).unwrap(); let guild_id = msg.guild_id.unwrap(); let channel_id = msg.channel_id; @@ -276,6 +275,8 @@ pub async fn generate_response(ctx: &Context, msg: &Message, oai: &OAI, pool: &P } }; + let typing = response_channel.start_typing(&ctx.http).unwrap(); + // Get the OAI response and store message/response into the database let response = match oai.get_request(request).await { Ok(r) => {