why isnt the send method listed on the docs
I'm trying to learn from the docs, but I don't understand why things aren't where I expect them to be.
I know I can do
channel.send()
, so why doesn't it show here: https://discord.js.org/#/docs/discord.js/v13/class/ChannelDiscord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
11 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.and what? its not there cause it's not a text channel?
yes
there are only properties/methods that can be used on all channel types
its not very clear in the docs. it should list what things inherit the thing you're looking at.
searching ".send" also does not return textchannel.send(), so it's hard for new devs to find the page they're looking at