mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
lint.
This commit is contained in:
@@ -7,7 +7,7 @@ export async function closeOldTickets(client: Client) {
|
|||||||
try {
|
try {
|
||||||
const thread = await client.channels.fetch(ticket.thread_id) as ThreadChannel;
|
const thread = await client.channels.fetch(ticket.thread_id) as ThreadChannel;
|
||||||
const latestMessage = (await thread.messages.fetch({ limit: 1 })).at(0);
|
const latestMessage = (await thread.messages.fetch({ limit: 1 })).at(0);
|
||||||
|
|
||||||
// Only process stale tickets. (Tickets with 5 days since the last message.)
|
// Only process stale tickets. (Tickets with 5 days since the last message.)
|
||||||
if (latestMessage && latestMessage.createdTimestamp > Date.now() - 432e6) continue;
|
if (latestMessage && latestMessage.createdTimestamp > Date.now() - 432e6) continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user