comment out broken channel functionality atm

This commit is contained in:
Skillz
2020-03-05 16:28:11 -05:00
parent 9d520a84a7
commit ea25d2f037

View File

@@ -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 })
})
}