This commit is contained in:
Dragon Fire
2021-02-12 20:52:14 -05:00
parent 62ac02e890
commit 87b9b2cc61
+2 -2
View File
@@ -2,7 +2,7 @@ const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const request = require('node-superfetch');
const ytdl = require('ytdl-core');
const { shorten, verify, reactIfAble } = require('../../util/Util');
const { shorten, verify } = require('../../util/Util');
const { GOOGLE_KEY } = process.env;
module.exports = class PlayCommand extends Command {
@@ -79,7 +79,7 @@ module.exports = class PlayCommand extends Command {
return data.id.videoId;
}
async canUseVideo(data, nsfw) {
canUseVideo(data, nsfw) {
if (data.videoDetails.isPrivate || data.videoDetails.isLiveContent) return false;
if (data.videoDetails.age_restricted && nsfw) return false;
return true;