Discord Bot不在线

发布于 2025-02-05 23:21:11 字数 523 浏览 0 评论 0 原文

我正在开设Udemy的课程,如何创建一个对消息响应消息的Discord机器人,IVE创建了机器人,但是,我正在遵循所有讲师的说明,但他的机器人的机器人显示为“在线”,而我的机器人却没有。

//令牌: //邀请链接:

const const discord = require(“ discord.js”);

const client = new discord.client({intents:[“ guilds”,“ guild_messages”,“ direct_messages”]});

client.login(“”);

Im doing a course off UDEMY, how to create a discord bot that responds to messages, ive created the bot and all however, i am following all of the instructors instructions yet his bot shows "online" and mine does not.

// token:
// invite link for bot: https://discord.com/api/oauth2/authorize?client_id=984130743578034216&permissions=2048&scope=bot

const Discord = require("discord.js");

const Client = new Discord.Client({ intents : ["GUILDS", "GUILD_MESSAGES", "DIRECT_MESSAGES"]});

Client.login("");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文