aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/suggestfeature.js20
1 files changed, 3 insertions, 17 deletions
diff --git a/commands/suggestfeature.js b/commands/suggestfeature.js
index 6492f33..52b077e 100644
--- a/commands/suggestfeature.js
+++ b/commands/suggestfeature.js
@@ -18,29 +18,15 @@
*
* *************************************/
module.exports.run = async (client, message, args) => {
-const talkedRecently = new Set();
- if (talkedRecently.has(message.author.id)) {
- message.channel.send("Wait 1 minute before getting typing this again. - " + message.author);
- } else {
const { RichEmbed } = require('discord.js');
- client.channels.find('id', '427495678390960148').send(
+ client.channels.find('id', '435234655579537418').send(
new RichEmbed()
.setColor ('#1fd619')
.setTitle('Suggestion')
- .setDescription(`This is a suggestion from `+ message.author.username +` please react to it using the following emojis.`)
+ .setDescription(`This is a suggestion from `+ message.author.username +` and the guild ${message.guild.name}.`)
.addField('Suggestion Contents', args.join(' '))
- ).then(message => {
- message.react('\u2705');
- message.react('\u274E');
- });
+ )
message.reply("Alright, your suggestion has been shown to the ACN guild.")
- // Adds the user to the set so that they can't talk for a minute
- talkedRecently.add(message.author.id);
- setTimeout(() => {
- // Removes the user from the set after a minute
- talkedRecently.delete(message.author.id);
- }, 60000);
-}
};