From ea25d2f03717bf61b714d7afdce7215636e5583f Mon Sep 17 00:00:00 2001 From: Skillz Date: Thu, 5 Mar 2020 16:28:11 -0500 Subject: [PATCH] comment out broken channel functionality atm --- module/client.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/module/client.ts b/module/client.ts index 5bd81b6f1..1b305f256 100644 --- a/module/client.ts +++ b/module/client.ts @@ -381,10 +381,10 @@ class Client { const message = create_message(options, this) const channel = message.channel() if (channel) { - channel.last_message_id = () => options.id - if (channel.messages().size > 99) { - // TODO: LIMIT THIS TO 100 messages - } + // channel.last_message_id = () => options.id + // if (channel.messages().size > 99) { + // // TODO: LIMIT THIS TO 100 messages + // } } return this.event_handlers.message_create?.(message) } @@ -398,12 +398,13 @@ class Client { if (!channel) return deleted_messages.forEach(id => { - const message = channel.messages().get(id) - if (message) { - // TODO: update the messages cache - } + console.log(id) + // const message = channel.messages().get(id) + // if (message) { + // // TODO: update the messages cache + // } - return this.event_handlers.message_delete?.(message || { id, channel }) + // return this.event_handlers.message_delete?.(message || { id, channel }) }) }