1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 16:30:59 -04:00

it spammed in main server's log channel.

This commit is contained in:
AnxietyisReal 2022-11-26 19:13:35 +11:00
parent f8a0df7d5f
commit f5d951adaa

View File

@ -3,6 +3,7 @@ import { TClient } from '../client';
export default { export default {
name: 'roleUpdate', name: 'roleUpdate',
execute: async(client:TClient, oldRole:Discord.Role, newRole:Discord.Role)=>{ execute: async(client:TClient, oldRole:Discord.Role, newRole:Discord.Role)=>{
if (oldRole.guild?.id != client.config.mainServer.id) return;
const fetchRoleUpdoot = await client.guilds.cache.get(oldRole.guild.id).fetchAuditLogs({ const fetchRoleUpdoot = await client.guilds.cache.get(oldRole.guild.id).fetchAuditLogs({
limit: 1, limit: 1,
type: AuditLogEvent.RoleUpdate type: AuditLogEvent.RoleUpdate