aboutsummaryrefslogtreecommitdiff
path: root/commands/suggest.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-23 11:41:02 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-23 11:41:02 -0400
commited456ef581c5acd852a924d9cc274a259b2d8ce5 (patch)
tree33be62f54239fa6f6b61b9488dbfde329ae1fd78 /commands/suggest.js
parent1ce861095b2793a1b49546c0adf460fbc2fc5d9f (diff)
downloadAleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.gz
AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.tar.bz2
AleeBot-ed456ef581c5acd852a924d9cc274a259b2d8ce5.zip
Converted to Discord.JS v12, starting database
Diffstat (limited to 'commands/suggest.js')
-rw-r--r--commands/suggest.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/commands/suggest.js b/commands/suggest.js
index 6fb4289..3adaa31 100644
--- a/commands/suggest.js
+++ b/commands/suggest.js
@@ -18,28 +18,28 @@
*
* *************************************/
module.exports.run = async (client, message, args) => {
- if (message.guild.id != '243022206437687296') return message.reply('This is a ALP exclusive command.');
- const {RichEmbed} = require('discord.js');
- client.channels.find('id', '427495678390960148').send(
- new RichEmbed()
- .setColor('#1fd619')
- .setTitle('Suggestion')
- .setDescription(`This is a suggestion from `+ message.author.username +` please react to it using the following emojis.`)
- .addField('Suggestion Contents', args.join(' ')),
- ).then((message) => {
- message.react('\u2705');
- message.react('\u274E');
- });
- message.reply('Your suggestion has been shown in the suggestions channel.');
+ if (message.guild.id != '243022206437687296') return message.reply('This is a ALP exclusive command.');
+ const {MessageEmbed} = require('discord.js');
+ client.channels.cache.get('427495678390960148').send(
+ new MessageEmbed()
+ .setColor('#1fd619')
+ .setTitle('Suggestion')
+ .setDescription('This is a suggestion from '+ message.author.username +' please react to it using the following emojis.')
+ .addField('Suggestion Contents', args.join(' ')),
+ ).then((message) => {
+ message.react('\u2705');
+ message.react('\u274E');
+ });
+ message.reply('Your suggestion has been shown in the suggestions channel.');
};
exports.conf = {
- aliases: [],
- guildOnly: false,
+ aliases: [],
+ guildOnly: false,
};
exports.help = {
- name: 'suggest',
- description: 'Suggest a feature in ACN.',
- usage: 'suggest [suggestion]',
- category: '- ALP Exclusive Commands',
+ name: 'suggest',
+ description: 'Suggest a feature in ALP.',
+ usage: 'suggest [suggestion]',
+ category: '- ALP Exclusive Commands',
};