mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
Added permissions
This commit is contained in:
@@ -13,10 +13,10 @@ a.on("warn", function (m) {
|
||||
});
|
||||
|
||||
a.on("message", function (m) {
|
||||
if (m.content === "$$$") a.internal.createServer("H a h").then(function (srv) {
|
||||
console.log(srv);
|
||||
a.reply(m, srv);
|
||||
});
|
||||
if (m.content === "$$$") a.reply(m, "you have the roles:\n" + m.channel.server.rolesOfUser(m.author).map(function (v) {
|
||||
return "**" + v.name + "** " + v.id + "\n";
|
||||
}));
|
||||
if (m.content === "$$") a.reply(m, JSON.stringify(m.channel.permissionsOf(m.author).serialise(), null, 4).replace(/true/g, "**true**"));
|
||||
});
|
||||
a.on("serverMemberRemoved", function (r, s) {
|
||||
console.log(r, s);
|
||||
|
||||
Reference in New Issue
Block a user