From 32fd04f9a2cc488f28b5b6638b26b98c052d1b6d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 13 Dec 2020 15:28:00 +0200 Subject: [PATCH] Type fix --- backend/src/plugins/Utility/commands/CleanCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/CleanCmd.ts b/backend/src/plugins/Utility/commands/CleanCmd.ts index 2cedd276..a54964f1 100644 --- a/backend/src/plugins/Utility/commands/CleanCmd.ts +++ b/backend/src/plugins/Utility/commands/CleanCmd.ts @@ -98,7 +98,7 @@ export const CleanCmd = utilityCmd({ const timeCutoff = msg.timestamp - MAX_CLEAN_TIME; const deletePins = args["delete-pins"] != null ? args["delete-pins"] : false; - let pins = []; + let pins: Message[] = []; if (!deletePins) { pins = await msg.channel.getPins(); }