add new commands to published commands
This commit is contained in:
@@ -18,3 +18,20 @@ pub(crate) use resume::resume;
|
||||
|
||||
mod stop;
|
||||
pub(crate) use stop::stop;
|
||||
|
||||
use twilight_model::application::command::CommandType;
|
||||
use twilight_util::builder::command::{CommandBuilder, StringBuilder};
|
||||
|
||||
pub(crate) fn get_chat_commands() -> Vec<twilight_model::application::command::Command> {
|
||||
vec![
|
||||
CommandBuilder::new("join", "Join the channel", CommandType::ChatInput).build(),
|
||||
CommandBuilder::new("leave", "Leave the channel", CommandType::ChatInput).build(),
|
||||
CommandBuilder::new("pause", "Pause playing", CommandType::ChatInput).build(),
|
||||
CommandBuilder::new("play", "Add a song to the queue", CommandType::ChatInput)
|
||||
.option(StringBuilder::new("query", "URL of a song").required(true))
|
||||
.build(),
|
||||
CommandBuilder::new("queue", "Print track queue", CommandType::ChatInput).build(),
|
||||
CommandBuilder::new("resume", "Resume playing", CommandType::ChatInput).build(),
|
||||
CommandBuilder::new("stop", "Stop playing", CommandType::ChatInput).build(),
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user