Question
How can i change this so it will go into the dms instead of the channel
message.channel.send(
\🆙 | ${message.author} You've leveled up to **\
${curlvl + 1}`**`
)
Question
How can i change this so it will go into the dms instead of the channel
message.channel.send(
\🆙 | ${message.author} You've leveled up to **\
${curlvl + 1}`**`
)
You can create a DMChannel between the bot and the user.
You get the user object by using message.author
.
Check if a User.?dmChannel exists on the user object.
If not you can call User.createDM()
A much simpler way of explaining that would be just use message.author.send()
instead of message.channel.send()