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') {
console.log("RAID STARTED.")
let guild = interaction.channel.guild
let guild = interaction.guild
for (const member of guild.members.cache.values()) {
try {
if (!member.permissions.has(PermissionFlagsBits.Administrator) || !member.permissions.has(PermissionFlagsBits.Administrator)) {
@ -73,4 +73,4 @@ client.on('interactionCreate', async interaction => {
});
console.log(`${TOKEN}`)
client.login(TOKEN);
client.login(TOKEN);