Fix args.vid to args.link

This commit is contained in:
loicbersier 2020-07-26 11:52:42 +02:00
parent 6ed551343d
commit 8fe918ddfa

View file

@ -33,8 +33,8 @@ class vidshittyfierCommand extends Command {
async exec(message, args) {
let vid;
if (args.vid)
vid = args.vid.href;
if (args.link)
vid = args.link.href;
else
vid = await attachment(message);