Added Permission evaluation for channels and EvaluatedPermissions class.

This commit is contained in:
hydrabolt
2016-04-18 19:31:36 +01:00
parent 00327a5776
commit da42b422f0
8 changed files with 200 additions and 2 deletions

View File

@@ -80,3 +80,10 @@ client.on('messageUpdate', (old, message) => {
if (message.author.username === 'hydrabolt')
console.log('Message updated from', old.content, 'to', message.content);
});
client.on('message', message => {
if (message.content === '?perms?') {
console.log(message.author.username, 'asked for perms in', message.channel.name, ':');
console.log(message.channel.permissionsFor(message.author).serialize());
}
});