Added createInvite

This commit is contained in:
hydrabolt
2015-11-05 18:39:02 +00:00
parent 164e6b1b7e
commit f6dfea5abd
8 changed files with 343 additions and 30 deletions

View File

@@ -8,22 +8,7 @@ a.on("warn", (m) => console.log("[warn]", m));
a.on("message", m => {
if(m.content === "$$$"){
a.createRole(m.channel.server, {
name : "a_role!",
color : 0xFF0000,
hoist : true,
permissions : [
"manageRoles"
]
}).then( role => {
a.addMemberToRole(m.author, role).then(() => {
a.reply(m, "added!");
}).catch( e => {
console.log(e.stack)
});
}).catch( e => {
console.log(e.stack)
});
a.createInvite(m.channel).then(invite => a.reply(m, invite)).catch(e => console.log(e.stack));
}
});
a.on("userTypingStart", (user, chan) => {