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
[my code]
async function onFriendship (friendship) { try { // console.log(friendship.payload); // console.log(friendship.contact()); // console.log(`received friend event.`); switch (friendship.type()) { // 1. New Friend Request case Friendship.Type.Receive: await friendship.accept(); break; // 2. Friend Ship Confirmed case Friendship.Type.Confirm: console.log(`friend ship confirmed`); break } } catch (e) { console.error(`error: ${e}`) } }
[error]
ReferenceError: Friendship is not defined
The text was updated successfully, but these errors were encountered:
不好意思,我有仔细看了下,发现没有导入类……。失误失误,我nodejs用的不好
Sorry, something went wrong.
No branches or pull requests
[my code]
[error]
The text was updated successfully, but these errors were encountered: