diff --git a/src/utils/discord.ts b/src/utils/discord.ts index 42ac34b..63931d0 100644 --- a/src/utils/discord.ts +++ b/src/utils/discord.ts @@ -1,3 +1,5 @@ +import { Logger } from "./Logger"; + export const getDiscordGuildMembers = async() => { let oldId; const result: any[] = []; @@ -16,8 +18,12 @@ export const getDiscordGuildMembers = async() => { result.push(...members.map(m => ({ id: m.id, nickname: m.nick }))); oldId = members[members.length - 1].id; + + Logger.debug(`Fetching guild members - ${result.length}, ${oldId}`); } + Logger.debug(`All guild members has been fetched - ${result.length}`); + return result; }