#displaying permissionOverwrites object in console.log

1 messages · Page 1 of 1 (latest)

fair meteor
#

code:

const log = await oldC.guild.fetchAuditLogs({
            type: 11,
        }).then(a => a.entries.find(audit => audit.target.id === oldC.id));

        return console.log(log.target.permissionOverwrites);
#

log.target is the channel itself

stable stratus
#

try util.inspect

fair meteor
stable stratus
#

what are you trying to see about it?

fair meteor
#

i'm trying to display in embed what permissions were changed for example

.addField(role, permission: value)

stable stratus
fair meteor
#

if @everyone were set to view channel true it would be then
(everyone, view_channel: true)