mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added Permission evaluation for channels and EvaluatedPermissions class.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user