GuildAuditLogEntryCreate & Typescript

export const handleAuditDrag = async (entry: GuildAuditLogsEntry, guild: Guild) => {
    if (entry.action === AuditLogEvent.MemberMove) {
        // 1322328096036094023
        const userName = entry.executor?.username
        const channelId = entry.extra.channel
    }
}

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
?
Was this page helpful?