fix: add missing name property in loadBuiltinCommands causing TypeError on slashcommand
This commit is contained in:
@@ -81,7 +81,7 @@ export function loadBuiltinCommands(
|
|||||||
for (const [name, definition] of Object.entries(BUILTIN_COMMAND_DEFINITIONS)) {
|
for (const [name, definition] of Object.entries(BUILTIN_COMMAND_DEFINITIONS)) {
|
||||||
if (!disabled.has(name as BuiltinCommandName)) {
|
if (!disabled.has(name as BuiltinCommandName)) {
|
||||||
const { argumentHint: _argumentHint, ...openCodeCompatible } = definition
|
const { argumentHint: _argumentHint, ...openCodeCompatible } = definition
|
||||||
commands[name] = openCodeCompatible as CommandDefinition
|
commands[name] = { ...openCodeCompatible, name } as CommandDefinition
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user