From bf6f27e0799a93af7fd2f5f807a984c77ff1fc2c Mon Sep 17 00:00:00 2001 From: gnuxie Date: Sun, 4 Feb 2024 18:26:49 +0000 Subject: [PATCH] Fix StatusCommand accidentally returning a promise. --- src/commands/StatusCommand.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/StatusCommand.tsx b/src/commands/StatusCommand.tsx index a6186f9e..b0b5ab21 100644 --- a/src/commands/StatusCommand.tsx +++ b/src/commands/StatusCommand.tsx @@ -40,8 +40,8 @@ defineInterfaceCommand({ designator: ["status"], table: "mjolnir", parameters: parameters([]), - command: async function (this: DraupnirContext) { - return Ok(draupnirStatusInfo(this.draupnir)) + command: async function (this: DraupnirContext): Promise> { + return Ok(await draupnirStatusInfo(this.draupnir)) }, summary: "Show the status of the bot." })