How do I fix "Cannot destructure property 'guild' of 'message.member' as it is null" error? #5232
-
I am trying to make this function where the user tells the bot what channel to set up the points channel in. The points channel is basically a channel where users would post attachments and get upvotes/downvotes by other users. Everything is working except this: if (message.channel.id = channelId) { });` This function is where the bot checks if the channel is indeed the points channel. If it is the points channel, the bot would react, else it would not. Errors are occurring at |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Why import a guild from message.member when you can do it from a simple message (without .member)? |
Beta Was this translation helpful? Give feedback.
Why import a guild from message.member when you can do it from a simple message (without .member)?