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