We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mater branch
Comment Error:
In user/contact-self.ts file, the example code of name.
/** * Change bot name * * @param name The new name that the bot will change to * * @example * bot.on('login', async user => { * console.log(`user ${user} login`) * const oldName = user.name() * try { * await user.setName(`${oldName}-${new Date().getTime()}`) * } catch (e) { * console.error('change name failed', e) * } * }) */
We should use the name method, not the setName
name
setName
The text was updated successfully, but these errors were encountered:
Thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
1. Versions
Answer:
mater branch
2. Describe the bug
Comment Error:
In user/contact-self.ts file, the example code of name.
We should use the
name
method, not thesetName
The text was updated successfully, but these errors were encountered: