mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
it spammed in main server's log channel.
This commit is contained in:
parent
f9c938d1cc
commit
fb3cf7f751
@ -3,6 +3,7 @@ import { TClient } from '../client';
|
||||
export default {
|
||||
name: 'roleUpdate',
|
||||
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({
|
||||
limit: 1,
|
||||
type: AuditLogEvent.RoleUpdate
|
||||
|
Loading…
Reference in New Issue
Block a user