【发布时间】:2019-03-14 00:55:11
【问题描述】:
当我执行console.log(message.guild.name) 时,它正常工作,给我公会的名称,其中包含一条消息。但是,由于某种原因,当我在向用户发送 DM 时运行该代码时,它给了我以下错误:
(node:36816) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'name' of null'
【问题讨论】:
标签: discord discord.js