node.js - 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!
解决方案
你是什么意思命令?据我所知,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
等等。
推荐阅读
- odoo - 从odoo中的只读字段中保存值
- php - 在 Joomla 中提交后获取表单字段
- python - upsert 到 Postgres 处理报价
- automated-tests - SheetCommandBase.java:152 处的 Fitnesse NullPointer
- python - 从文档中删除所有信息,但保留它的 ObjectId,mongoengine
- batch-file - 排除功能不适用于 xcopy
- laravel - 在 Laravel 5.6 中使用 hasOne 检索数据
- sql - SQL Server 中的递归查询与所有子项
- r - 如何使用日期格式时间点补间 data.frame?
- r - R中的数据操作和结构