我正在为我的不一致机器人编写一个server-info命令,我想从实际的公会中获得所有者的用户名或标签。我找到了一种在discord js 11中实现它的方法,但是在12版本中它不再起作用了: const guild = client.guilds.get(message.guild.id);
message.channel.sendotherwise it will use .tag 所以在discordjs12中,client.guilds.get不是一个函数,guild.owner
let user = message.guild.member(message.mentions.users.first() || message.guild.members.cache.getvalid member or a user ID for me to mute") 好的,这段代码来自我的静音命令,当我尝试执行.mute [there discord id] [time]时,它总是返回我不明白,我只能使用不一致的id,并将其放入<@there-discord-id>格式,