#Hello, the issue is that when attempting to retrieve the value of guild.id, it returns undefined.
20 messages · Page 1 of 1 (latest)
just use member.guild
Tried many times
Same problem
this causes more problems though
i don't see you accessing guild.id anywhere though
what exactly is undefined here

just use member.guild
uh
are you messing with the cache or something?
only one think was guild.id

TypeError: Cannot read properties of undefined (reading 'channels')
at GuildMemberAddEvent.onGuildMemberAdd (C:\Users\artem\OneDrive\Рабочий стол\Module-Bot\src\events\logsystem\member\guildMemberAdd.ts
36)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async next (C:\Users\artem\OneDrive\Рабочий стол\Module-Bot\node_modules\discordx\src\decorators\classes\Method.ts:85:15)
at async C:\Users\artem\OneDrive\Рабочий стол\Module-Bot\node_modules\discordx\src\logic\metadata\MetadataStorage.ts:609:23
at async Promise.all (index 0)
at async Client.<anonymous> (C:\Users\artem\OneDrive\Рабочий стол\Module-Bot\node_modules\discordx\src\logic\metadata\MetadataStorage.ts:603:7)
what intents do you have and are you messing with cache
const intents: IntentsBitField[] | number = 131071;
export const client = new Client({
intents: intents
});
We highly recommend only specifying the intents you actually need.
• Note, that 98303, 32767 or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
• The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.
i'm not reading that