guildAuditLogEntryCreate
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
}
});Property 'id' does not exist on type 'Guild | AnyThreadChannel | Role | User | NonThreadGuildBasedChannel | GuildEmoji | Invite | ... 10 more ... | GuildOnboardingPrompt'.
Property 'id' does not exist on type 'Invite'.Property 'id' does not exist on type 'Guild | AnyThreadChannel | Role | User | NonThreadGuildBasedChannel | GuildEmoji | Invite | ... 10 more ... | GuildOnboardingPrompt'.
Property 'id' does not exist on type 'Invite'.