trying to do a starboard system

https://sourceb.in/TFctbjoT1p setting the channel is fine and is entered in the database, but nothing gets sent to the channel so i figured it was my event
27 Replies
d.js toolkit
d.js toolkit13mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
d.js docs
d.js docs13mo ago
If you aren't getting any errors, try to place console.log checkpoints throughout your code to find out where execution stops. - Once you do, log relevant values and if-conditions - More sophisticated debugging methods are breakpoints and runtime inspections: learn more
cyukizzz
cyukizzz13mo ago
yes i tried, still nothing happens, nothing gets logged
duck
duck13mo ago
so the event doesn't emit in the first place?
cyukizzz
cyukizzz13mo ago
pretty much
treble/luna
treble/luna13mo ago
do you have the GuildMessageReactions intent?
cyukizzz
cyukizzz13mo ago
yes
duck
duck13mo ago
are you testing with an existing message sent before the bot logged in?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
cyukizzz
cyukizzz13mo ago
ohh okay let me try
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
cyukizzz
cyukizzz13mo ago
thank you, it worked!
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
cyukizzz
cyukizzz13mo ago
okay, thank you i have another issue not regarding this though if youre able to help
treble/luna
treble/luna13mo ago
sure
cyukizzz
cyukizzz13mo ago
https://sourceb.in/tSb5sX24pQ this command is supposed to ping online staff (anyone thats not marked as offline) but its still pinging ppl that are offline
treble/luna
treble/luna13mo ago
presence can be null sometimes iirc
cyukizzz
cyukizzz13mo ago
is there a better way to do this?
duck
duck13mo ago
the point is that member.presence?.status !== 'offline' will be true if presence is null
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
duck
duck13mo ago
that's definitely not necessary
cyukizzz
cyukizzz13mo ago
what can i do to fix
duck
duck13mo ago
presence will specifically be null when the member is offline, so just check if status is offline or presence is null
cyukizzz
cyukizzz13mo ago
kk @ducktrshessami hey sorry for the Ping. I was wondering if there’s a way to get the message link so there’s a “jump to message” option
treble/luna
treble/luna13mo ago
#rules 5 and <Message>.url . Looking at the docs would have given you that answer a lot faster
cyukizzz
cyukizzz13mo ago
@wolvinny I wasn’t asking you to write the code for me, I was asking duck if there was a way to do so? Lol It was a yes or no question
treble/luna
treble/luna13mo ago
I meant rule 6. And i gave you your answer