Added ephemeral responses
This commit is contained in:
@@ -13,9 +13,9 @@ use crate::bot::ytdlp::{PlaylistItem, YtDlp};
|
||||
use crate::error::{SirenResult, Error as SirenError};
|
||||
use crate::HttpKey;
|
||||
|
||||
use super::{
|
||||
create_response, edit_response, get_songbird, is_valid_url, join_voice_channel, process_message,
|
||||
};
|
||||
use super::{get_songbird, is_valid_url, join_voice_channel};
|
||||
|
||||
use crate::bot::commands::{create_response, edit_response, process_message};
|
||||
|
||||
pub async fn run(ctx: &Context, command: &CommandInteraction) {
|
||||
// Process the command options
|
||||
@@ -26,13 +26,13 @@ pub async fn run(ctx: &Context, command: &CommandInteraction) {
|
||||
"{} attempted to play a track without a track option",
|
||||
command.user.id.get()
|
||||
);
|
||||
create_response(&ctx, &command, format!("Track option is missing")).await;
|
||||
create_response(&ctx, &command, format!("Track option is missing"), false).await;
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
// Create the initial response
|
||||
process_message(&ctx, &command).await;
|
||||
process_message(&ctx, &command, false).await;
|
||||
|
||||
// Get the songbird manager
|
||||
let manager = get_songbird(ctx).await;
|
||||
|
||||
Reference in New Issue
Block a user