mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-09-25 12:13:36 +00:00
Fix StatusCommand accidentally returning a promise.
This commit is contained in:
@@ -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."
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user