diff --git a/src/bot/commands/creator.rs b/src/bot/commands/creator.rs index a749f39..1a457c7 100644 --- a/src/bot/commands/creator.rs +++ b/src/bot/commands/creator.rs @@ -54,7 +54,7 @@ impl MixerCommand for CreatorCommand { if !has_permission { interaction - .create_interaction_response(&ctx.http, |response| { + .create_interaction_response(ctx, |response| { response .kind(InteractionResponseType::ChannelMessageWithSource) .interaction_response_data(|message| { @@ -105,7 +105,7 @@ impl CreatorCommand { } interaction - .create_interaction_response(&ctx.http, |response| { + .create_interaction_response(ctx, |response| { response .kind(InteractionResponseType::ChannelMessageWithSource) .interaction_response_data(|message| { diff --git a/src/bot/commands/rating.rs b/src/bot/commands/rating.rs index d936945..9981041 100644 --- a/src/bot/commands/rating.rs +++ b/src/bot/commands/rating.rs @@ -83,7 +83,7 @@ impl MixerCommand for RatingCommand { User(user, _) => user, _ => { interaction - .create_interaction_response(&ctx.http, |response| { + .create_interaction_response(ctx, |response| { response .kind(InteractionResponseType::ChannelMessageWithSource) .interaction_response_data(|message| { diff --git a/src/bot/handlers/command_handler.rs b/src/bot/handlers/command_handler.rs index f12eec6..61fe5d5 100644 --- a/src/bot/handlers/command_handler.rs +++ b/src/bot/handlers/command_handler.rs @@ -49,7 +49,7 @@ impl MixerCommandHandler { interaction.user.name, interaction.user.id, interaction.data.name ); interaction - .create_interaction_response(&ctx.http, |response| { + .create_interaction_response(ctx, |response| { response .kind(InteractionResponseType::ChannelMessageWithSource) .interaction_response_data(|message| { diff --git a/src/bot/mod.rs b/src/bot/mod.rs index 1f9af32..8b8fd0c 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -123,7 +123,7 @@ impl EventHandler for MixerBot { } Interaction::MessageComponent(component) => { component - .create_interaction_response(ctx.http(), |response| { + .create_interaction_response(ctx, |response| { response.kind(InteractionResponseType::DeferredUpdateMessage) }) .await