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 toolkit2y 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 docs2y 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
cyukizzzOP2y ago
yes i tried, still nothing happens, nothing gets logged
duck
duck2y ago
so the event doesn't emit in the first place?
cyukizzz
cyukizzzOP2y ago
pretty much
treble/luna
treble/luna2y ago
do you have the GuildMessageReactions intent?
cyukizzz
cyukizzzOP2y ago
yes
duck
duck2y ago
are you testing with an existing message sent before the bot logged in?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
cyukizzz
cyukizzzOP2y ago
ohh okay let me try
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
cyukizzz
cyukizzzOP2y ago
thank you, it worked!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
cyukizzz
cyukizzzOP2y ago
okay, thank you i have another issue not regarding this though if youre able to help
treble/luna
treble/luna2y ago
sure
cyukizzz
cyukizzzOP2y 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/luna2y ago
presence can be null sometimes iirc
cyukizzz
cyukizzzOP2y ago
is there a better way to do this?
duck
duck2y ago
the point is that member.presence?.status !== 'offline' will be true if presence is null
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
duck
duck2y ago
that's definitely not necessary
cyukizzz
cyukizzzOP2y ago
what can i do to fix
duck
duck2y ago
presence will specifically be null when the member is offline, so just check if status is offline or presence is null
cyukizzz
cyukizzzOP2y 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/luna2y ago
#rules 5 and <Message>.url . Looking at the docs would have given you that answer a lot faster
cyukizzz
cyukizzzOP2y 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/luna2y ago
I meant rule 6. And i gave you your answer
Want results from more Discord servers?
Add your server