Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PuppetLoginMixin selfId() is deprecated, use currentUserId instead: #16

Open
anaivebird opened this issue Oct 17, 2021 · 2 comments
Open

Comments

@anaivebird
Copy link
Collaborator

new error after Puppet API v0.51 upgrade eb8da77

19:31:18 WARN PuppetLoginMixin selfId() is deprecated, use `currentUserId` instead:
Error: 
    at PuppetOICQ.selfId (file:///home/anelderly/wechaty-puppet-oicq/node_modules/wechaty-puppet/src/mixins/login-mixin.ts:87:9)
    at WechatifiedMessage.talker (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/user/message.ts:273:69)
    at WechatifiedMessage.toString (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/user/message.ts:207:12)
    at Wechaty.onMessage (file:///home/anelderly/wechaty-getting-started/examples/ding-dong-bot.ts:44:30)
    at Wechaty.emit (events.js:315:20)
    at Wechaty.EventEmitter.emit (domain.js:467:12)
    at PuppetOICQ.<anonymous> (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/wechaty.ts:493:20)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
19:31:18 VERB PuppetLoginMixin get currentUserId()
19:31:18 INFO StarterBot Message#Text[🗣Contact<Li Dao>@👥Room<内部测试群>]      asdf
@anaivebird
Copy link
Collaborator Author

Is this error related to oicq puppet? It seems that it is caused by PuppetLoginMixin

@huan
Copy link
Member

huan commented Oct 19, 2021

We have renamed the selfId() method to currentUserId property.

If you see this error message again, please let me know how to reproduce it.

The fix should be replace the selfId() by currentUserId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants