This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey, I am trying to make my code log the id of the mentioned user in the command. This is my code so far:
const mentionedMember = message.mentions.members.first()
console.log(
mentionedMember.user.id
)
It might be that "mentionedMember" is a mention. I am new to javascript so im not sure how i can fix this problem. Please let me know if you have an answer to this!
Thanks.
I was just agreeing with your move to a language with types
JavaScript not having types is why I stopped using it and switched to Python so long ago for discord bots. Code is so much cleaner and errors are easier when you have types
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Discord_Bot...
Oh, I wasn't aware of that. Thanks for letting me know, might have to give it a try