Fixed the 1 year attachment requirement
This commit is contained in:
parent
b31b37051f
commit
57ad39102f
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ class tweetCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If account is less than 1 year old don't accept attachment
|
// If account is less than 1 year old don't accept attachment
|
||||||
if (Attachment[0] && message.author.createdAt > date.setMonth(date.getMonth() - 12)) {
|
if (Attachment[0] && message.author.createdAt > date.setFullYear(date.getFullYear() - 1 )) {
|
||||||
return message.channel.send('Your account need to be 6 months or older to be able to send attachment!');
|
return message.channel.send('Your account need to be 1 year or older to be able to send attachment!');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.text) {
|
if (args.text) {
|
||||||
|
|
Loading…
Reference in a new issue