typings on intervals/autoRelease.ts
parent
a1463e6821
commit
bbcab1f570
|
@ -2,7 +2,7 @@ import { Client } from '../class';
|
||||||
|
|
||||||
let interval: NodeJS.Timeout;
|
let interval: NodeJS.Timeout;
|
||||||
|
|
||||||
export default function checkLock(client: Client) {
|
export default function checkLock(client: Client): NodeJS.Timeout {
|
||||||
interval = setInterval(async () => {
|
interval = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
const moderations = await client.db.moderation.find();
|
const moderations = await client.db.moderation.find();
|
||||||
|
|
Loading…
Reference in New Issue