Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从文本中制作不和谐的机器人帖子图像。
例如 - 如果有人输入 !image http://imgur.com/xxxxxx.jpg
然后机器人应该回复没有链接的图像。有什么帮助吗?谢谢你。
这是一个示例,您可以如何做到这一点:
const Discord = require('discord.js'); const imageUrl = msg.content.split(' ').slice(1); const embed = new Discord.RichEmbed().setImage(imageUrl) msg.channel.send{ embed }