Got play to work
This commit is contained in:
@@ -74,7 +74,11 @@ impl EventHandler for Handler {
|
||||
warn!("No ready guilds found");
|
||||
}
|
||||
for guild in ready.guilds {
|
||||
let _ = InsertGuild::insert(InsertGuild { id: (guild.id.0 as i64), volume: 100.0 });
|
||||
let _ = InsertGuild::insert(InsertGuild {
|
||||
id: (guild.id.0 as i64),
|
||||
bot_id: ctx.cache.current_user().id.0 as i64,
|
||||
volume: 100.0
|
||||
});
|
||||
let commands = guild.id.set_application_commands(&ctx.http, |commands| {
|
||||
commands.create_application_command(|command: &mut serenity::builder::CreateApplicationCommand| { commands::ping::register(command) })
|
||||
.create_application_command(|command: &mut serenity::builder::CreateApplicationCommand| { commands::audio::play::register(command) })
|
||||
|
||||
Reference in New Issue
Block a user