#undefined channel id
40 messages · Page 1 of 1 (latest)
you said Data.Channel was undefined, not specifically Data
your schema from #djs-help-v14 message doesn't even show that value
you may have shown the wrong file earlier
so you just need to do Data.WelcSchema instead
#djs-help-v14 message
#djs-help-v14 message
check these
log guild and see what that returns
can you also show your event handler?
member.guild would be what you use for the guild, but can you show your event handler?
yeah you dont pass guild or interaction so im not sure where you got those from
only thing you pass that isnt even needed is client
i suggest removing client from event.execute(...args, client) so its just ...args
then in your event, you can just use member.guild for the guild
hm?
member.guild.channels.cache.get(Data.WelcSchema) ?
show me your current code please
for the event
remove guild and interaction from execute(...)
should only be member
did you remove client from the event handler as well?
ok
so it should be async execute(member) {
log member.guild
for this, do you have event.execute(...args) ?
okay perfect
log member.guild.channels
i know this is now back to djs stuff, but its fine
what about member.guild.channels ?
okay now please log Data.WelcSchema
oh
use Data.Channel then
im not sure where the WelcSchema came from lol
probably another schema you have
you dont have to keep leaving and rejoining a server btw
you can emit the event with <Client>.emit('guildMemberAdd', <GuildMember>)
hm?
oh wonderful!
glad i could help
not a problem
Sure, just add a property to that schema for the message content