set the permissions correctly on soundboard cmd

This commit is contained in:
2021-06-27 12:52:25 +01:00
parent a38e4c808e
commit 5dc1521181
3 changed files with 13 additions and 6 deletions

View File

@ -140,7 +140,13 @@ async fn join_channel(
(call, res)
}
async fn play_cmd(ctx: &Context, guild: Guild, user_id: UserId, args: Args, loop_: bool) -> String {
async fn play_from_query(
ctx: &Context,
guild: Guild,
user_id: UserId,
args: Args,
loop_: bool,
) -> String {
let guild_id = guild.id;
let channel_to_join = guild