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

Did you find this page helpful?