小编Sco*_*lsy的帖子

如何找到我的机器人所在的公会?

我有一个不和谐的机器人,我只是想知道:我如何找出机器人所在的公会?所以如果我说它 -guilds会告诉我它在多少公会。

node.js discord discord.js

3
推荐指数
1
解决办法
2万
查看次数

/n 不显示为换行符

/n并没有中断我的嵌入消息。我的代码和它发送的嵌入位于下面。有人可以帮忙吗?

嵌入图像

代码部分:

client.on("message", (message) => {
  if (!message.content.startsWith(prefix) || message.author.bot) return;

  if (message.content.toLowerCase().startsWith(prefix + `rules`)) {
    const embed = new Discord.RichEmbed()
    .setTitle(`OFFICIAL SERVER RULES`)
    .setColor(0xCF40FA)
    .setDescription(`Official rules for the USA discord server. Last updated: 1st October 2018`)
    .addField(`**GENERAL RULES**`, `1.Swearing is allowed, But not targeted towards a person./n2. Be respectful to everyone in the server./n3. No form of racism./n4. No public arguments./n5. Anything not suitable for work if forbidden./n6. All conversations are limited to English./n7. Spamming or mass mentioning …
Run Code Online (Sandbox Code Playgroud)

javascript node.js discord discord.js

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

discord ×2

discord.js ×2

node.js ×2

javascript ×1