GuildAuditLogEntryCreate does not provide a guild

in the documentation it says that the GuildAuditLogEntryCreate event a guild provides. but it seems to always be undefined
the guildAuditLogsEntry does exist but i cant seem to get a guild value from that somehow

https://old.discordjs.dev/#/docs/discord.js/main/class/Client?scrollTo=e-guildAuditLogEntryCreate
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Was this page helpful?