📅  最后修改于: 2022-03-11 15:01:36.695000             🧑  作者: Mango
client.on('guildCreate', guild => {
const channel = guild.channels.cache.find(channel => channel.type === 'text' && channel.permissionsFor(guild.me).has('SEND_MESSAGES'))
channel.send("Thanks for inviting me")
})