Add confirmation message to p.rh
This commit is contained in:
@@ -347,6 +347,8 @@ impl Command<State, Extras> for RemoteHangupCommand {
|
|||||||
call.hangup(&ctx.rt.state.db)
|
call.hangup(&ctx.rt.state.db)
|
||||||
.await
|
.await
|
||||||
.inspect_err(|e| log::error!("Failed to hang up call: {e:?}"))?;
|
.inspect_err(|e| log::error!("Failed to hang up call: {e:?}"))?;
|
||||||
|
|
||||||
|
ctx.send().content(format!("<#{}> had its call hung up.", channel.id)).await?;
|
||||||
} else {
|
} else {
|
||||||
ctx.send()
|
ctx.send()
|
||||||
.content("❌ This channel is not in a call.")
|
.content("❌ This channel is not in a call.")
|
||||||
|
|||||||
Reference in New Issue
Block a user