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...
?4 Replies
DISCORD_TOKEN
iircSolution
yeah, its "process.env.DISCORD_TOKEN"
That's part of discordjs btw. Always has been.
Never knew, thanks