Skip to content

How can I find out if the person sending a slash command is in a channel? #8822

Closed Answered by almostSouji
ThomasOToole65 asked this question in Q&A
Discussion options

You must be logged in to vote

"member" is not undefined, it cannot read property .member OF undefined, suggesting that interaction has the value undefined.
This in turn suggests, that whatever you call run(...) with is not an object of the structure {interaction: value1, client: value2}.

If you are following a guide, you might want to re-view how they define and pass these function arguments. Please note, that both GitHub discussions and the Discord server require some understanding of JavaScript, so that you can understand the answers given to you.

You can find some common errors you may encounter during development at https://discordjs.guide/popular-topics/errors.html#javascript-errors

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kyranet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants