mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-03-29 15:54: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) => {
|
execute: async (client: Client) => {
|
||||||
const config = loadConfig();
|
const config = loadConfig();
|
||||||
try {
|
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) {
|
if (!guild) {
|
||||||
console.error(`Guild with ID ${config.guildId} not found.`);
|
console.error(`Guild with ID ${config.guildId} not found.`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const members = await guild.members.fetch();
|
const members = await guild.members.fetch();
|
||||||
const nonBotMembers = members.filter((m) => !m.user.bot);
|
const nonBotMembers = members.filter((m) => !m.user.bot);
|
||||||
await setMembers(nonBotMembers);
|
await setMembers(nonBotMembers);
|
||||||
|
|
Loading…
Add table
Reference in a new issue