Remove broken is_text_based check

This commit is contained in:
claude Bot committed 2023-10-21 17:06:41 +01:00
1 parent 8390bf0ec6
commit 6d324e10cb
2 files changed
+117 -138

No files matched your search

+12 -17
View File
@@ -25,24 +25,19 @@ pub async fn play(
let guild = ctx.guild().unwrap();
if channel.as_ref().map_or(false, |c| c.is_text_based()) {
ctx.say("The channel specified is not a voice channel.")
.await?;
} else {
ctx.say(
play_from_query(
&ctx.serenity_context(),
&ctx.data(),
guild,
ctx.author().id,
channel.map(|c| c.id),
&name,
false,
)
.await,
ctx.say(
play_from_query(
&ctx.serenity_context(),
&ctx.data(),
guild,
ctx.author().id,
channel.map(|c| c.id),
&name,
false,
)
.await?;
}
.await,
)
.await?;
Ok(())
}