handle when no link is used and added prompt

This commit is contained in:
loicbersier 2020-02-19 13:37:47 +01:00
parent 07d29e8c1d
commit 4fcbe2890c

View file

@ -13,10 +13,16 @@ class memeCommand extends Command {
args: [
{
id: 'link',
prompt: {
start: 'Please input a link to use, say `cancel` to stop the command'
},
type: 'string',
},
{
id: 'message',
prompt: {
start: 'Please input a caption, say `cancel` to stop the command'
},
type: 'string',
match: 'rest'
}
@ -92,11 +98,10 @@ class memeCommand extends Command {
});
});
});
})
.catch((err) => {
return message.channel.send(`Please input a correct link \`${err}\``);
});
}
}