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 ™8mo ago
DISCORD_TOKEN iirc
Solution
KaydaFox
KaydaFox8mo ago
yeah, its "process.env.DISCORD_TOKEN"
Favna
Favna8mo ago
That's part of discordjs btw. Always has been.
ColdUnwanted
ColdUnwanted8mo ago
Never knew, thanks
Want results from more Discord servers?
Add your server