首页 > 解决方案 > Looking for a NodeJS Discord Bot command list

问题描述

I've recently learned some NodeJS because I wanted to try making a discord bot however I am struggling to find commands.

For example, I tried using message.author in an if statement and didn't realise my mistake of not using message.author.tag until a good while of searching.

I've looked at the Discord Documentation but I couldn't find that and other command s I was looking for, I would greatly appreciate it if someone could link me a list of Discord Bot NodeJS commands.

Thank you in advance!

标签: node.jsdiscorddiscord.js

解决方案


你是什​​么意思命令?据我所知,discord.js 有一个全面的文档。例如:https://discord.js.org/#/docs/main/stable/class/Message?scrollTo=author你看到 message.author 是用户类型(https://discord.js.org/# /docs/main/stable/class/User),它可以访问以下方法(仅部分):

removeFriend
send
sendCode 
sendFile
sendMessage

等等。


推荐阅读