Javascript Discord bot返回权限错误

Javascript Discord bot返回权限错误,javascript,discord,bots,Javascript,Discord,Bots,我的Discord机器人不断返回这些错误,我不知道如何处理它们,因为我对整个编码工作还是很陌生 UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions at RequestHandler.execute (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:170:25) at runMicrotasks (<anonymo

我的Discord机器人不断返回这些错误,我不知道如何处理它们,因为我对整个编码工作还是很陌生

UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
at RequestHandler.execute (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:15) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 39)

我希望你能帮助我

您的bot没有向用户写入的频道发送消息的权限。尝试使用“权限”菜单在该频道中授予“发送消息”权限。

尝试在此网站上输入设置您的bot客户端ID并输入地址,这样您就可以为您的bot设置管理员权限。我确实发现了这一点,但问题是,我的bot是公共的,目前在99台服务器上。我无法在我不是其成员的服务器上授予bot权限。我可以做些什么来禁用这些错误消息吗?
client.on("message", async message => {
  if (message.author.bot || message.content.trim() == "") return;
  if (message.content.toLowerCase().trim() == "cat") {
    const { file } = await fetch("https://aws.random.cat/meow").then(response =>
      response.json()
    );
    return message.channel.send(new $().setColor("RANDOM").setTitle("Your Cat").setImage(file).setFooter('Powered by Catastic'));
  }
});