mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
bru #4
This commit is contained in:
parent
6d89446c00
commit
854fb55893
@ -3,6 +3,7 @@ import { TClient } from '../client';
|
|||||||
export default {
|
export default {
|
||||||
name: 'guildBanRemove',
|
name: 'guildBanRemove',
|
||||||
execute: async(client:TClient, member:Discord.GuildMember)=>{
|
execute: async(client:TClient, member:Discord.GuildMember)=>{
|
||||||
|
if (member.guild?.id != client.config.mainServer.id) return;
|
||||||
const fetchUnbanlog = await member.guild.fetchAuditLogs({
|
const fetchUnbanlog = await member.guild.fetchAuditLogs({
|
||||||
limit: 1,
|
limit: 1,
|
||||||
type: AuditLogEvent.MemberBanRemove
|
type: AuditLogEvent.MemberBanRemove
|
||||||
@ -20,4 +21,4 @@ export default {
|
|||||||
console.log(`${target.tag} was unbanned from ${member.guild.name} but no audit log could be fetched.`)
|
console.log(`${target.tag} was unbanned from ${member.guild.name} but no audit log could be fetched.`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user