#channel issue
1 messages · Page 1 of 1 (latest)
I'm pretty sure the issue is I'm somehow fucking my snowflake when I'm fetching it from the database, and DJS defaults to fetching everything
reproducing here for thread
let guild = await client.guilds.cache.get(serverId);
let channel = await guild.channels.fetch(value.channel);
let giveawayMessage = await channel.messages.fetch(value.message);
which I didnt realize it was doing before
thats what im thinking man
but also
im not sure what value is
any way it must be value.channel.id?
no, value is the database entry i fetch, and channel is the row i store the ID in
i didnt explain bc i assumed that I had done it correctly since djs didnt throw any errors, but that wasnt the case lol
no worries man
not to poke at you (ive been there a million times). but when im absolutely certain of something i do a sanity check like that log i suggested
yeah I should've, it's just 2 AM and i'm crunching for a deadline :P
live and learn ig
better to have uncovered this bug than banged your head even more you know
yeah exactly
i hear you man
i rly appreciate ur help dude, ur the most helpful person i've met so far
no worries man. i figured id help while waiting for help on my own question lol
didnt realize the time either
🧟♂️
have a good night man. i'll go back and check ur question to see if i've seen it before
nah dont worry about it i think i solved it actually
not sure why the guide sample is broken but thats a different issue. mine was related to TS casting
coincedentally coming to this server the first question i saw was someone else stuck on casting. and that led to solving my own. karma baby