There was an error while loading. Please reload this page.
1 parent 513ac8e commit 46548eaCopy full SHA for 46548ea
1 file changed
src/handlers/message.ts
@@ -36,7 +36,7 @@ export function messageHandler (deps: UnpackedDependencies, defaultPrefix?: stri
36
const [prefix] = fmt(message.content, defaultPrefix);
37
let module = mg.get(`${prefix}_T`) ?? mg.get(`${prefix}_B`) as Module;
38
if(!module) {
39
- throw Error('Possibly undefined behavior: could not find a static id to resolve')
+ log?.warning({ message: 'Possibly undefined behavior: could not find a static id to resolve' });
40
}
41
const payload = { module, args: [Context.wrap(message, defaultPrefix), createSDT(module, deps, undefined)] }
42
const result = await callPlugins(payload)
0 commit comments