【问题标题】:Discord.js and http listener with GET requestDiscord.js 和带有 GET 请求的 http 监听器
【发布时间】:2019-04-09 07:17:19
【问题描述】:

我有一个接收 http GET 请求的 Windows 应用程序。例如,向用户发送消息或向聊天频道发送消息。但是我无法通过 Discord.js 在服务器上创建语音或文本通道。我绝望地转向论坛。请帮忙

所以系统实现了:

Windows App (for Users) <==> Windows Server for App <==> Discord Bot (Server) <==> MYSQL

例如,发送一条消息:

if (req.params.type === 'sendMessage')
  {
    channelName = req.params.channel;
    message = req.params.message;
    channel = bot.channels.find('name', channelName);
    channel.send(message);
  }

【问题讨论】:

    标签: bots discord discord.js


    【解决方案1】:

    问题解决了。也许有人会帮忙。话题关闭。

    bot.rest.methods.createChannel('424511917596606464' ,nameChannel, "text", 0, 0);(雪花服务器、nameChannel、语音或文本或类别、覆盖、原因)

    const bot = new Discord.Client();

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-05-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-20
      相关资源
      最近更新 更多