1
0
Fork 0

don't let new account use this command

akairo
loicbersier 5 years ago
parent cebc55cd05
commit 68a45d5de6

@ -26,6 +26,12 @@ class FeedbackCommand extends Command {
}
async exec(message,args) {
// Don't let account new account use this command to prevent spam
let date = new Date();
if (message.author.createdAt > date.setDate(date.getDate() - 7)) {
return message.channel.send('Your account is too new to be able to use this command!');
}
const channel = this.client.channels.get(feedbackChannel);
const Embed = new MessageEmbed()

Loading…
Cancel
Save