Skip to content

Commit 8ab02b9

Browse files
committed
chore: remove unnecessary interaction response
1 parent 32be324 commit 8ab02b9

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/commands/otakugif.rs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@ pub(crate) async fn run(ctx: &Context, command: &ApplicationCommandInteraction,
4545
Ok(url) => url,
4646
Err(e) => {
4747
error!("Could not get {reaction} link: {e}");
48-
if let Err(e) = command
49-
.create_interaction_response(&ctx.http, |response| {
50-
response
51-
.kind(InteractionResponseType::ChannelMessageWithSource)
52-
.interaction_response_data(|message| {
53-
message.content("Could not send {reaction} :(")
54-
})
55-
})
56-
.await
57-
{
58-
error!("There was an error while running {reaction} command: {e}")
59-
};
6048
return;
6149
}
6250
};
@@ -73,6 +61,9 @@ pub(crate) async fn run(ctx: &Context, command: &ApplicationCommandInteraction,
7361
})
7462
.await
7563
{
76-
error!("There was an error while running {reaction} command: {}", e)
64+
error!(
65+
"There was an error while responding to {reaction} command: {}",
66+
e
67+
)
7768
};
7869
}

0 commit comments

Comments
 (0)