1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 04:10:59 -05:00
This commit is contained in:
toast-ts 2022-11-25 20:49:30 +11:00 committed by GitHub
parent 2fcde46328
commit 53f1c7090e

View File

@ -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