different way for suggestions
This commit is contained in:
parent
72bd216f54
commit
c1c2a6b86b
1 changed files with 12 additions and 3 deletions
|
@ -16,19 +16,28 @@ module.exports = class Suggest extends Command {
|
|||
|
||||
async command(ctx) {
|
||||
/* throw new Error('Testing'); */
|
||||
let abuse = new D.MessageEmbed()
|
||||
let Misuse = new D.MessageEmbed()
|
||||
.setTitle('Misuse of Command')
|
||||
.setDescription(
|
||||
`Please make sure to make your Suggestion as Detailed as possible.\n\nAbuse of this command will lead to complete denial of command usage.`
|
||||
`There was
|
||||
Please make sure to make your Suggestion as Detailed as possible.\n\nAbuse of this command will lead to complete denial of command usage.`
|
||||
);
|
||||
if (ctx.args.length < 1) {
|
||||
return ctx.send(abuse);
|
||||
}
|
||||
|
||||
let Suggestion = ctx.args.join(' ').split('|')
|
||||
if (Suggestion.length < 2) return ctx.send(`Only the Title doesn't help, please add Text after the \`|\` to send me your Suggestion`)
|
||||
if (Suggestion[1] === '') return ctx.send(`Only the Title doesn't help, please add Text after the \`|\` to send me your Suggestion`)
|
||||
|
||||
|
||||
|
||||
ctx.trello
|
||||
.addCard(
|
||||
ctx.args.join(' '),
|
||||
Suggestion[0],
|
||||
`
|
||||
${Suggestion[1]}
|
||||
|
||||
Author: ${ctx.author.tag} (${ctx.author.id})
|
||||
Server: ${ctx.guild.name} (${ctx.guild.id})`,
|
||||
ctx.config.trello.boards.suggestions
|
||||
|
|
Loading…
Reference in a new issue