#displaying permissionOverwrites object in console.log
1 messages · Page 1 of 1 (latest)
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
try util.inspect
now i get this, but still can't see anything about permissionsoverwrites
https://pastebin.com/5kC5rtdJ
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
what are you trying to see about it?
i'm trying to display in embed what permissions were changed for example
.addField(role, permission: value)
https://discord.js.org/#/docs/main/stable/class/PermissionOverwriteManager?scrollTo=cache iterate through this
if @everyone were set to view channel true it would be then
(everyone, view_channel: true)