This commit is contained in:
Dragon Fire
2021-02-12 20:52:23 -05:00
parent 87b9b2cc61
commit c742a44200
+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = class PlayCommand extends Command {
const result = await this.searchForVideo(query, msg.channel.nsfw || false);
if (!result) return msg.say('Could not find any results for your query.');
const data = await ytdl.getInfo(result);
const canPlay = await this.canUseVideo(data, msg.channel.nsfw || false);
const canPlay = this.canUseVideo(data, msg.channel.nsfw || false);
if (!canPlay) return msg.say('I cannot play this video.');
await msg.reply('Is this the video you want to play? Type **[y]es** or **[n]o**.', {
embed: this.generateEmbed(data)