Question regarding client.login()

A bit of a curiosity question, I noticed that you can use await client.login(); without providing the token if you use @skyra/env-utilities. So my question is like what does the login get as the token if token is not provided? process.env...?
Solution:
yeah, its "process.env.DISCORD_TOKEN"
Jump to solution
4 Replies
Oreo ™
Oreo ™9mo ago
DISCORD_TOKEN iirc
Solution
KaydaFox
KaydaFox9mo ago
yeah, its "process.env.DISCORD_TOKEN"
Favna
Favna9mo ago
That's part of discordjs btw. Always has been.
ColdUnwanted
ColdUnwantedOP9mo ago
Never knew, thanks
Want results from more Discord servers?
Add your server