[英]Discord.js guildCreate and guildDelete events are not fired
[英]Embed in guildCreate (discord.js)
您好,我正在为我的 discord.js 编程,但我不知道如何嵌入 guildCreate。 我有这个:
client.on('guildCreate', guild => {
if (guild.systemChannel)
guild.systemChannel.send('witamy');
});
function 真的没关系,您可以在任何地方创建嵌入。
client.on('guildCreate', guild => {
if (guild.systemChannel) {
let embed = new Discord.MessageEmbed()
.setTitle("This is a embed!")
.setDescription("And this is the description!");
guild.systemChannel.send(embed);
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.