diff --git a/src/wechaty.ts b/src/wechaty.ts index 5edd3c2f35d8f961cdfb8ac45b7b0f393bc2c17a..dcc5ff1f2d86f0445c8b29cbb8d5d515ed6f1c2a 100644 --- a/src/wechaty.ts +++ b/src/wechaty.ts @@ -389,11 +389,11 @@ export class Wechaty extends Accessory implements Sayable { // DEPRECATED for 'friend' event if (event as any === 'friend') { - log.warn('Wechaty', 'on(friend) is DEPRECATED. use on(friendship) instead') + log.warn('Wechaty', `on('friend', contact, friendRequest) is DEPRECATED. use on('friendship', friendship) instead`) if (typeof listener === 'function') { const oldListener = listener listener = (...args: any[]) => { - log.warn('Wechaty', 'on(friend) is DEPRECATED. use on(friendship) instead') + log.warn('Wechaty', `on('friend', contact, friendRequest) is DEPRECATED. use on('friendship', friendship) instead`) oldListener.apply(this, args) } }