// final permissions for a guild member using permissionsFor
const botPermissionsFor = channel.permissionsFor(guild.me);
// final permissions for a guild member using permissionsIn
const botPermissionsIn = guild.me.permissionsIn(channel);
// final permissions for a role
const rolePermissions = channel.permissionsFor(role);