From 5dfc15733009b834d0de4ca36dc1391a4130f63c Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Fri, 17 Feb 2023 07:05:06 +1100 Subject: [PATCH] Thanks dear. --- src/events/messageCreate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index ee4833c..6637e5d 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -67,7 +67,7 @@ export default { await client.punishments.addPunishment('mute', {time: '1h'}, (client.user as Discord.User).id, 'Automod; Discord advertisement', message.author, message.member as Discord.GuildMember); } }else{ - client.repeatedMessages[message.author.id] = new client.collection(); + client.repeatedMessages[message.author.id].data = new client.collection(); client.repeatedMessages[message.author.id].data.set(message.createdTimestamp, {cont: 1, ch: message.channelId}); client.repeatedMessages[message.author.id].timeout = setTimeout(onTimeout, threshold); }