I was looking at the Eris API for Discord and wanted to know how I could add a user as a friend using it. I tried in several ways and got nothing. My console had no errors and the sending of friendship didn’t work either. I also tried to accept a server invitation and it didn’t work either. Does anyone have a code example that works? I’ve tried the following modes:
const Eris = require("eris")
var bot = new Eris("my user token");
const getUser = msg.author.id;
bot.addRelationship(getUser, false); // there is no return and it does not work
bot.addRelationship(getUser); // there is no return and it does not work
getUser.addRelationship(false); // it is not a snowflake function