mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix lint
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user