forked from Galactic/modmail
add debug print
This commit is contained in:
parent
c7f82f458c
commit
7c01ee242f
@ -274,7 +274,7 @@ class Modmail {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await channel.send({ embed });
|
await channel.send({ embed });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.client.cache.channels[user.id] = channel.id;
|
this.client.cache.channels[user.id] = channel.id;
|
||||||
@ -552,6 +552,7 @@ class Modmail {
|
|||||||
if (!amount) str = 'No modmail in queue';
|
if (!amount) str = 'No modmail in queue';
|
||||||
else str = `${amount} modmail in queue.`;
|
else str = `${amount} modmail in queue.`;
|
||||||
|
|
||||||
|
this.client.logger.debug(`Sending modmail reminder, #mm: ${amount}`);
|
||||||
if (this.lastReminder) {
|
if (this.lastReminder) {
|
||||||
if (channel.lastMessage.id === this.lastReminder.id) return this.lastReminder.edit(str);
|
if (channel.lastMessage.id === this.lastReminder.id) return this.lastReminder.edit(str);
|
||||||
await this.lastReminder.delete();
|
await this.lastReminder.delete();
|
||||||
|
Loading…
Reference in New Issue
Block a user