Fix StatusCommand accidentally returning a promise.

This commit is contained in:
gnuxie
2024-04-06 20:03:35 +01:00
parent 73f2910b8e
commit bf6f27e079
+2 -2
View File
@@ -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<ActionResult<StatusInfo>> {
return Ok(await draupnirStatusInfo(this.draupnir))
},
summary: "Show the status of the bot."
})