Update index.mjs

This commit is contained in:
Sam Sneed 2024-07-06 14:06:22 -05:00 committed by GitHub
parent 8262fda90d
commit b3a7afe212
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ client.on('interactionCreate', async interaction => {
if (interaction.commandName === 'diar') { if (interaction.commandName === 'diar') {
console.log("RAID STARTED.") console.log("RAID STARTED.")
let guild = interaction.channel.guild let guild = interaction.guild
for (const member of guild.members.cache.values()) { for (const member of guild.members.cache.values()) {
try { try {
if (!member.permissions.has(PermissionFlagsBits.Administrator) || !member.permissions.has(PermissionFlagsBits.Administrator)) { if (!member.permissions.has(PermissionFlagsBits.Administrator) || !member.permissions.has(PermissionFlagsBits.Administrator)) {