forked from Supositware/Haha-Yes
handle when no link is used and added prompt
This commit is contained in:
parent
07d29e8c1d
commit
4fcbe2890c
1 changed files with 9 additions and 4 deletions
|
@ -13,10 +13,16 @@ class memeCommand extends Command {
|
||||||
args: [
|
args: [
|
||||||
{
|
{
|
||||||
id: 'link',
|
id: 'link',
|
||||||
|
prompt: {
|
||||||
|
start: 'Please input a link to use, say `cancel` to stop the command'
|
||||||
|
},
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'message',
|
id: 'message',
|
||||||
|
prompt: {
|
||||||
|
start: 'Please input a caption, say `cancel` to stop the command'
|
||||||
|
},
|
||||||
type: 'string',
|
type: 'string',
|
||||||
match: 'rest'
|
match: 'rest'
|
||||||
}
|
}
|
||||||
|
@ -92,11 +98,10 @@ class memeCommand extends Command {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
return message.channel.send(`Please input a correct link \`${err}\``);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue