replace ctx.http with ctx
This commit is contained in:
@@ -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| {
|
||||||
|
|||||||
@@ -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| {
|
||||||
|
|||||||
@@ -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| {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user