mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
bru #3
This commit is contained in:
parent
6a951f3a27
commit
6d89446c00
@ -3,6 +3,7 @@ import { TClient } from '../client';
|
|||||||
export default {
|
export default {
|
||||||
name: 'guildBanAdd',
|
name: 'guildBanAdd',
|
||||||
execute: async(client:TClient, member:Discord.GuildMember)=>{
|
execute: async(client:TClient, member:Discord.GuildMember)=>{
|
||||||
|
if (member.guild?.id != client.config.mainServer.id) return;
|
||||||
const fetchBanlog = await member.guild.fetchAuditLogs({
|
const fetchBanlog = await member.guild.fetchAuditLogs({
|
||||||
limit: 1,
|
limit: 1,
|
||||||
type: AuditLogEvent.MemberBanAdd
|
type: AuditLogEvent.MemberBanAdd
|
||||||
|
Loading…
Reference in New Issue
Block a user