ScorpionOfWar
-
Posts
4 -
Joined
-
Last visited
Posts posted by ScorpionOfWar
-
-
Ok the error is back
-
sclient.on('groupRelationship', (steamid, relationship) => { groupSteamID = steamid; if(relationship === 2) { dbot.channels.get('302817074269519873').sendMessage('You have been invited to this group: "' + groupSteamID + '" \n If you want to accept the group request, reply with ``!accept group``. \n And if you want to decline it, reply with ``!decline group``.'); console.log('New group invite to this group: "' + groupSteamID + '"'); } });
if (command === "accept-group") { sclient.accept(groupSteamID) = true; dbot.channels.get('302817074269519873').sendMessage("Accepted group invite: " + friendrqst); console.log("Accepted group invite: " + friendrqst); } if (command === "decline-group") { sclient.accept(groupSteamID) = false; dbot.channels.get('302817074269519873').sendMessage("Declined group invite: " + groupSteamID); console.log("Declined group invite: " + groupSteamID); }
I am using the node-steam module and the discord.js module just for you information.
sclient.accept(groupSteamID) is not a function is my error when I try to accept/decline the invite
-
How can I get a groups/users name except the steam64id/groupid?
Currently I just get something like this for a group: 103582791456793547
Or for a user his Steam64ID
Problems with accepting/ignoring group invites
in node-steam-user
Posted · Edited by ScorpionOfWar
The error is back with the following code:
I tried the accept and decline command(sclient.accept and sclient.respondToGroupInvite.accept) Both give me the error that its no function