add debug print

This commit is contained in:
Erik 2021-06-20 01:33:45 +03:00
parent c7f82f458c
commit 7c01ee242f
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -274,7 +274,7 @@ class Modmail {
});
await channel.send({ embed });
}
this.client.cache.channels[user.id] = channel.id;
@ -552,6 +552,7 @@ class Modmail {
if (!amount) str = 'No modmail in queue';
else str = `${amount} modmail in queue.`;
this.client.logger.debug(`Sending modmail reminder, #mm: ${amount}`);
if (this.lastReminder) {
if (channel.lastMessage.id === this.lastReminder.id) return this.lastReminder.edit(str);
await this.lastReminder.delete();