Discord Bot serverlist命令MessageCreate代码运行报错求助
Discord 机器人 serverlist 命令报错排查求助
我是一名开发初学者,在开发Discord机器人的serverlist相关命令时遇到代码运行报错问题,多次尝试修复均未解决,恳请各位开发者协助排查,若能得到帮助我将不胜感激。
涉及代码片段
以下为涉及的MessageCreate事件代码片段:
!channel.permissionsFor(message.guild.me)?.has(Permissions.FLAGS.EMBED_LINKS) && client.user.id !== userId ) { return channel.send({ content: `Error: I need \`EMBED_LINKS\` permission to work.` }); } if (command.owner) { if (client.owner) { const devs = client.owner.find((x) => x === message.author.id); if (!devs) return message.channel.send({ embeds: [embed.setDescription('Only <@959276033683628122> can use this command!')], }); } }
排查参考
- 已留存对应运行错误日志截图,可供定位问题时参考
内容的提问来源于stack exchange,提问作者Z E E Y
相关产品推荐
相关产品推荐

