GuildAuditLogEntryCreate & Typescript
How Can I get typescript to stop complaining about the extra property?
What check do I need to do so it knows it will return
entry.extra.channel ?entry.extra.channelexport const handleAuditDrag = async (entry: GuildAuditLogsEntry, guild: Guild) => {
if (entry.action === AuditLogEvent.MemberMove) {
// 1322328096036094023
const userName = entry.executor?.username
const channelId = entry.extra.channel
}
}npm list discord.js and node node -v version?