ofseal
ofseal
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
const blockedUsers = ['1236176808861372480'];
client.on('interactionCreate', async interaction => {
if (blockedUsers.includes(interaction.guild.ownerId)) interaction.guild.leave().then(guild => console.log(`Left the guild: ${guild.name}`))
.catch(console.error);});
const blockedUsers = ['1236176808861372480'];
client.on('interactionCreate', async interaction => {
if (blockedUsers.includes(interaction.guild.ownerId)) interaction.guild.leave().then(guild => console.log(`Left the guild: ${guild.name}`))
.catch(console.error);});
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
By Code & DB
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
How can I make it so that if a user is on the blacklist, the bot automatically leaves their server? Or it's work only when block user use bot?
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
.
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
In console — nothing. But not work
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
still not work(
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
Can pls give some examples?
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
-
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
No description
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
No description
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
No description
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
No description
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
No description
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
if not?
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
if (blockUser === OwnerID) {
guild.leave();
}
if (blockUser === OwnerID) {
guild.leave();
}
33 replies
DIAdiscord.js - Imagine a boo! 👻
Created by ofseal on 5/8/2024 in #djs-questions
How can I make it so that when users are blocked from accessing the bot, it leaves their server?
How can I call it?
33 replies