replace ctx.http with ctx

This commit is contained in:
Suiranoil
2023-04-20 10:35:42 +03:00
parent 4a13bc4832
commit 8f319c50a6
4 changed files with 5 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ impl MixerCommand for CreatorCommand {
if !has_permission { if !has_permission {
interaction interaction
.create_interaction_response(&ctx.http, |response| { .create_interaction_response(ctx, |response| {
response response
.kind(InteractionResponseType::ChannelMessageWithSource) .kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|message| { .interaction_response_data(|message| {
@@ -105,7 +105,7 @@ impl CreatorCommand {
} }
interaction interaction
.create_interaction_response(&ctx.http, |response| { .create_interaction_response(ctx, |response| {
response response
.kind(InteractionResponseType::ChannelMessageWithSource) .kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|message| { .interaction_response_data(|message| {

View File

@@ -83,7 +83,7 @@ impl MixerCommand for RatingCommand {
User(user, _) => user, User(user, _) => user,
_ => { _ => {
interaction interaction
.create_interaction_response(&ctx.http, |response| { .create_interaction_response(ctx, |response| {
response response
.kind(InteractionResponseType::ChannelMessageWithSource) .kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|message| { .interaction_response_data(|message| {

View File

@@ -49,7 +49,7 @@ impl MixerCommandHandler {
interaction.user.name, interaction.user.id, interaction.data.name interaction.user.name, interaction.user.id, interaction.data.name
); );
interaction interaction
.create_interaction_response(&ctx.http, |response| { .create_interaction_response(ctx, |response| {
response response
.kind(InteractionResponseType::ChannelMessageWithSource) .kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|message| { .interaction_response_data(|message| {

View File

@@ -123,7 +123,7 @@ impl EventHandler for MixerBot {
} }
Interaction::MessageComponent(component) => { Interaction::MessageComponent(component) => {
component component
.create_interaction_response(ctx.http(), |response| { .create_interaction_response(ctx, |response| {
response.kind(InteractionResponseType::DeferredUpdateMessage) response.kind(InteractionResponseType::DeferredUpdateMessage)
}) })
.await .await