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