📜  不和谐反链接 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:34.134000             🧑  作者: Mango

代码示例1
client.on('message', (message) => {
  if (message.content.includes('discord.gg/'||'discordapp.com/invite/'||'https://'||'http://')) {
    message.delete()
      .then(message.channel.send('Link Deleted:\n**Invite links are not permitted on this server**'))
  }
});