Added ephemeral responses

This commit is contained in:
2024-12-18 12:59:54 -05:00
parent a274d30521
commit 56e44442e4
13 changed files with 121 additions and 61 deletions

View File

@@ -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;