3
votes
Error: TypeError: user.send is not a function
send is a method of the user, not the user's id:
const user = interaction.user // was interaction.user.id in the question
user.send(`ASDASD`)
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
discord.js × 17303javascript × 10822
node.js × 8246
discord × 7625
bots × 1793
json × 313
mongodb × 305
typescript × 281
heroku × 217
arrays × 211
mongoose × 204
mysql × 150
embed × 134
npm × 132
quick.db × 113
command × 110
node.js-fs × 91
sqlite × 84
visual-studio-code × 82
typeerror × 82
roles × 82
commando × 77
database × 73
async-await × 72
discord-buttons × 69