root Posted January 11, 2021 Report Share Posted January 11, 2021 Hey, I want to invite the User if he send the command !invite. How can I fix it? Log: "invitee": userID.toString(), TypeError: Cannot read property 'toString' of null if (message == "!invite") { community.inviteUserToGroup(null, "XXXXXXXXXXXXXXX"); console.log("Invite send to " + steamID); Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 12, 2021 Report Share Posted January 12, 2021 Why are you passing null? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.