我的serverlist命令DISCORD机器人错误,任何人都可以帮助我
既然我还是初学者,我真的很努力地解决这个问题...你们能帮我吗?如果你们想在这个问题上为我提供帮助,我非常感谢。
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!')],
});
}
}
since I'm still a beginner, I'm really struggling to fix this... can you guys help me? i am very grateful if you guys want to help me on this issue.
MessageCreate code
!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!')],
});
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误可能出现的原因之一是因为没有属性称为
client.houter.houter
inclient
。但是一种方法,您可以使用client.owner
是如果您创建了集合
,然后将其设置为数组。一个例子就是这样:One reason why this error could be coming is because there is no property called as
client.owner
in aClient
. But one way, you could useclient.owner
is if you created aCollection
and then set it to an array. An example would be like this: