Just like there's Member Exit Audit Log, is there Member Join Audit log?

Basically the question. I didn't find any such relevant Audit log type. The closest I could find is MEMBER_UPDATE
7 Replies
MRDGH2821
MRDGH2821OP•14mo ago
I know that there is client event called GuildMemberAdd, I'm asking about Audit log I realised that fetching member join audit log might be pointless 🤪 But I would like to know the possibilities
Favna
Favna•14mo ago
Discord.js
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.
MRDGH2821
MRDGH2821OP•14mo ago
This is something close 🤔
MRDGH2821
MRDGH2821OP•14mo ago
Something along these lines That AuditLogEvent is an enum imported from discord.js
No description
Favna
Favna•14mo ago
idk what you want mate. That event is emitted when an audit log is created. Sounds like that's what you're asking. and you dont need to fetch it because you already got the GuildAuditLogsEntry
MRDGH2821
MRDGH2821OP•14mo ago
End goal: To get a member's audit log who just joined Method GuildAuditLogsEntry (which is discord.js client event): 1. I have to listen to GuildAuditLogEntry 2. When there is new entry, get it via run function parameter 3. Check if it is member joined the server type This method involves extra steps & definitely not useful if the end goal is to just look for Member joined the server type of audit log, not the other types So, my question: Is this kind of thing possible? More like, Does this thing exist?
guild.fetchAuditLog({
type: "Member Joined the Server"
})
guild.fetchAuditLog({
type: "Member Joined the Server"
})
Favna
Favna•14mo ago
I told you many times already to listen to the event https://old.discordjs.dev/#/docs/discord.js/main/class/Client?scrollTo=e-guildAuditLogEntryCreate which has a GuildAuditLogsEntry which then has a property action to determine what action it is which as per the DiscordJS documentation links to https://discord-api-types.dev/api/discord-api-types-v10/enum/AuditLogEvent. Please follow URLs when they are sent to you. As you can see here, and you could've found out quite easily by checking the audit logs in any servers where you have access to them, audit logs are not created when a new user joins. That's not what audit logs are for and never will be.
Discord.js
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.
Want results from more Discord servers?
Add your server