mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Now caches user status
This commit is contained in:
@@ -13,10 +13,7 @@ a.on("warn", function (m) {
|
||||
});
|
||||
|
||||
a.on("message", function (m) {
|
||||
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**"));
|
||||
if (m.content === "$$$") a.reply(m, "I have you cached as being " + m.author.status);
|
||||
});
|
||||
a.on("serverMemberRemoved", function (r, s) {
|
||||
console.log(r, s);
|
||||
|
||||
Reference in New Issue
Block a user