1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 16:30:59 -04:00
This commit is contained in:
Toast 2022-11-25 20:49:12 +11:00 committed by GitHub
parent c8a84d4abb
commit 866f2d16e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import { TClient } from '../client';
export default {
name: 'guildBanAdd',
execute: async(client:TClient, member:Discord.GuildMember)=>{
if (member.guild?.id != client.config.mainServer.id) return;
const fetchBanlog = await member.guild.fetchAuditLogs({
limit: 1,
type: AuditLogEvent.MemberBanAdd
@ -20,4 +21,4 @@ export default {
console.log(`${target.tag} was banned from ${member.guild.name} but no audit log could be fetched.`)
}
}
}
}