From 3367443e32be334ab64a63bd557b3b6d9a72571b Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Fri, 16 Sep 2022 22:16:52 +0800 Subject: [PATCH] delete error messages after a few seconds --- src/commands/modrinth.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/commands/modrinth.ts b/src/commands/modrinth.ts index a2ea7fc..ba1291d 100644 --- a/src/commands/modrinth.ts +++ b/src/commands/modrinth.ts @@ -54,6 +54,10 @@ export const modrinthCommand = async ( ], }); + setTimeout(() => { + i.deleteReply(); + }, 3000); + return; } @@ -73,6 +77,10 @@ export const modrinthCommand = async ( ], }); + setTimeout(() => { + i.deleteReply(); + }, 3000); + return; }