use super::{Context, Error}; use super::utils::serenity; #[poise::command(slash_command)] pub async fn add_logging_channel( ctx: Context<'_>, #[description = "Selected channel"] channel: Option, ) -> Result<(), Error> { let response = match channel { None => "No channel selected. Please select one.".to_owned(), Some(chan) => { let channel_id = chan.id(); format!("Selected channel <#{channel_id}>") } }; ctx.say(response).await?; Ok(()) }