fix: add missing name property in loadBuiltinCommands causing TypeError on slashcommand
This commit is contained in:
parent
c8cc94cd3c
commit
1c76e0513a
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user