Skip to content

Commit 46548ea

Browse files
committed
fix: make message module warn rather than throwing
1 parent 513ac8e commit 46548ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/handlers/message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function messageHandler (deps: UnpackedDependencies, defaultPrefix?: stri
3636
const [prefix] = fmt(message.content, defaultPrefix);
3737
let module = mg.get(`${prefix}_T`) ?? mg.get(`${prefix}_B`) as Module;
3838
if(!module) {
39-
throw Error('Possibly undefined behavior: could not find a static id to resolve')
39+
log?.warning({ message: 'Possibly undefined behavior: could not find a static id to resolve' });
4040
}
4141
const payload = { module, args: [Context.wrap(message, defaultPrefix), createSDT(module, deps, undefined)] }
4242
const result = await callPlugins(payload)

0 commit comments

Comments
 (0)