Fix /tools-unregister

This commit is contained in:
Cohee
2024-12-06 17:15:40 +02:00
parent 8663c88ae8
commit 9c43999e4b

View File

@@ -947,7 +947,7 @@ export class ToolManager {
enumProvider: toolsEnumProvider, enumProvider: toolsEnumProvider,
}), }),
], ],
callback: async (name) => { callback: async (_, name) => {
if (typeof name !== 'string' || !name) { if (typeof name !== 'string' || !name) {
throw new Error('The unnamed argument must be a non-empty string.'); throw new Error('The unnamed argument must be a non-empty string.');
} }