diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-23 11:41:02 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-23 11:41:02 -0400 |
| commit | ed456ef581c5acd852a924d9cc274a259b2d8ce5 (patch) | |
| tree | 33be62f54239fa6f6b61b9488dbfde329ae1fd78 /commands/suggestfeature.js | |
| parent | 1ce861095b2793a1b49546c0adf460fbc2fc5d9f (diff) | |
| download | AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.gz AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.bz2 AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.zip | |
Converted to Discord.JS v12, starting database
Diffstat (limited to 'commands/suggestfeature.js')
| -rw-r--r-- | commands/suggestfeature.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/commands/suggestfeature.js b/commands/suggestfeature.js index fac82a6..8b8b3c7 100644 --- a/commands/suggestfeature.js +++ b/commands/suggestfeature.js @@ -18,27 +18,27 @@ * * *************************************/ module.exports.run = async (client, message, args) => { - const { RichEmbed } = require('discord.js'); + const { MessageEmbed } = require('discord.js'); - client.channels.find('id', '427495678390960148').send( - new RichEmbed() - .setColor ('#1fd619') - .setTitle('AleeBot Feature Suggestion') - .setDescription(`This is an AleeBot feature suggestion from `+ message.author.username +` sending from ${message.guild.name}.`) - .addField('Suggestion Contents', args.join(' ')) - ) - await message.reply("Your suggestion has been shown to the ALP discord server!") + client.channels.cache.get('427495678390960148').send( + new MessageEmbed() + .setColor ('#1fd619') + .setTitle('AleeBot Feature Suggestion') + .setDescription('This is an AleeBot feature suggestion from '+ message.author.username +` sending from ${message.guild.name}.`) + .addField('Suggestion Contents', args.join(' ')) + ); + await message.reply('Your suggestion has been shown to the ALP discord server!'); - }; +}; - exports.conf = { - aliases: [], - guildOnly: false, - }; - exports.help = { - name: 'suggestfeature', - description: 'Suggest features in AleeBot.', - usage: 'suggestfeature [suggestion]', - category: '- General Commands', - }; +exports.conf = { + aliases: [], + guildOnly: false, +}; +exports.help = { + name: 'suggestfeature', + description: 'Suggest features in AleeBot.', + usage: 'suggestfeature [suggestion]', + category: '- General Commands', +}; |
