【发布时间】:2021-03-02 09:53:14
【问题描述】:
module.exports = {
name: 'owner',
description: "This command sends the Server Owner's Name'!",
execute(message, args) {
const guild = client.guilds.get('500170876243935247');
message.channel.send(message.guild.member(guild.owner) ? guild.owner.toString() : guild.owner.user.tag);
}
}
这是我的代码,我正在使用高级命令处理程序,这是命令的文件,我想创建一个 &owner 的命令,它应该检查公会所有者的名称并在频道中提及它,但它似乎无法上班有人可以帮我吗?
【问题讨论】:
-
抛出了什么错误?
-
请使用反引号正确格式化您的代码,并向我们提供有关该问题的一些详细信息!代码运行时会发生什么?代码运行时应该发生什么?那种东西
标签: discord.js