mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-03-26 14:24:15 +00:00
Fixed Linting issues
This commit is contained in:
parent
69ebfbd5b8
commit
71f6e2a013
1 changed files with 4 additions and 2 deletions
|
@ -10,12 +10,14 @@ export default {
|
|||
execute: async (client: Client) => {
|
||||
const config = loadConfig();
|
||||
try {
|
||||
const guild = client.guilds.cache.find((guild) => guild.id === config.guildId);
|
||||
const guild = client.guilds.cache.find(
|
||||
(guilds) => guilds.id === config.guildId,
|
||||
);
|
||||
if (!guild) {
|
||||
console.error(`Guild with ID ${config.guildId} not found.`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const members = await guild.members.fetch();
|
||||
const nonBotMembers = members.filter((m) => !m.user.bot);
|
||||
await setMembers(nonBotMembers);
|
||||
|
|
Loading…
Add table
Reference in a new issue