Commit c198c1c8 authored by nanahira's avatar nanahira

fix missing prepend

parent fcc05078
......@@ -242,8 +242,10 @@ export function KoishiPlugin<T = any>(
case 'onevent':
const { data: eventData } = regData as DoRegisterConfig<'onevent'>;
const eventName = eventData.name;
baseContext.on(eventName, (...args: any[]) =>
this[methodKey](...args),
baseContext.on(
eventName,
(...args: any[]) => this[methodKey](...args),
eventData.prepend,
);
// special events
/*if (eventName === 'service') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment