Update index.mjs
This commit is contained in:
parent
8262fda90d
commit
b3a7afe212
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||||
|
@ -73,4 +73,4 @@ client.on('interactionCreate', async interaction => {
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`${TOKEN}`)
|
console.log(`${TOKEN}`)
|
||||||
client.login(TOKEN);
|
client.login(TOKEN);
|
||||||
|
|
Loading…
Reference in a new issue