0

I am attempting to get the name of the channel the command was sent to. I am trying to check and see if the channel name the command was sent to is equal to the one I want to require the command to be sent to.

if (message.guilds.channels.name !== "suggestions") return message.channel.send("Please use the \"#suggestions\" text channel");

1 Answer 1

0
message.channel.name

https://discord.js.org/#/docs/main/stable/class/Message?scrollTo=channel

It's all listed on the discord.js website under the message class

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.