Ping command
So I am a bit confused so I so I am new to using d.js/@core and d.js/@rest Witch I am fully using and I am having issues making my ping command work
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ā
Marked as resolved by OPāāā @anitrack/[email protected]
āāā @discordjs/[email protected]
āāā @discordjs/[email protected]
āāā @discordjs/[email protected]
āāā @discordjs/[email protected]
āāā @discordjs/[email protected]
āāā @sapphire/[email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
āāā [email protected]
Node version v21.6.2
I get
With
/core
you get raw API data which doesn't have client, helper methods and properties.
* To calculate the created timestamp you should deconstruct the interaction.id
eg with @sapphire/snowflake
* The ws latency (ping) is emitted on WSWebSocketShardEvents.HeartbeatComplete
event. Save it somewhere when you receive the event
Btw why did you switch to /core
?Idk ngl I just thought I give it a try. someone said Core was good. So I just wen't with it
What be better Core or discord.js
It looks like you need the features of discord.js, so definitely discord.js is better for you
Ok Imma start the transition Thanks!