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 ™3mo ago
DISCORD_TOKEN iirc
Solution
KaydaFox
KaydaFox3mo ago
yeah, its "process.env.DISCORD_TOKEN"
Favna
Favna3mo ago
That's part of discordjs btw. Always has been.
ColdUnwanted
ColdUnwanted3mo ago
Never knew, thanks