client.on("guildAuditLogEntryCreate", async (log, guild) => {
if(log.action === AuditLogEvent.ChannelCreate) {
console.log(log.target?.id); // error
}
});
client.on("guildAuditLogEntryCreate", async (log, guild) => {
if(log.action === AuditLogEvent.ChannelCreate) {
console.log(log.target?.id); // error
}
});