Made date/timestamps consistent and less shitty

This commit is contained in:
Schuyler Cebulskie
2016-09-27 19:46:53 -04:00
parent b6c26cc2ae
commit 1e57c968dd
10 changed files with 137 additions and 75 deletions

View File

@@ -295,7 +295,7 @@ class Client extends EventEmitter {
channels++;
for (const message of channel.messages.values()) {
if (now - (message._editedTimestamp || message._timestamp) > lifetimeMs) {
if (now - (message.editedTimestamp || message.createdTimestamp) > lifetimeMs) {
channel.messages.delete(message.id);
messages++;
}