From 1e3903c0145477f318f9bb8a1c4170cd6b870289 Mon Sep 17 00:00:00 2001 From: vyneer Date: Tue, 28 Jan 2025 17:02:30 +0300 Subject: [PATCH] Fix `/help` not showing any commands --- components/help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/help.js b/components/help.js index c2866b0..6eb04cb 100644 --- a/components/help.js +++ b/components/help.js @@ -42,8 +42,8 @@ function KeyBindingsHelp() { } function CommandsHelp() { - let l = Object.keys(commands).map((name) => { - let cmd = commands[name]; + let l = [...commands.keys()].map((name) => { + let cmd = commands.get(name); let usage = [html`/${name}`]; if (cmd.usage) {