so I am currently in the process of trying to have a bot create a new guild/discord server and then console.log() an invite link for that so that I can join the guild and set it up to then invite friends. However, I am running into some slight problems as I am unsure as to how to go about this. My thought process is the following:
run : function(msg, client, cmds, disc, args){
const guild = client.guild.create("New Guild");
let invite //(and here get a new guild invite code )
console.log(invite);
}
My first problem is that I am not even sure if the guild creation is valid and how to get a guild invite from a guild object.