Help! this worked and now not

client.on('message', (message) => {
if (message.content.includes(‘discord.gg’||‘discord.com/invite/’||‘discord.com/’||'discord.com/invite/’).toLowerCase) {
if (message.author.bot) return;
if (message.member.hasPermission[“ADMINISTRATOR”]) return;

message.delete()
  .then(message.reply('Invitacion Eliminada:\n**Los links de invitaciones no estan permitidos.**'))

}
});

client.on(‘message’, (message) => {
if (message.content.includes(’.com’||’.es’||’.uk’||’.blog’||’.gob’||’.pro’||’.gov’||’.ly’||’.gg’).toLowerCase) {
if (message.author.bot) return;
if (message.member.hasPermission[“ADMINISTRATOR”]) return;

message.delete()
  .then(message.reply('Link eliminado:\n**Los links de paginas web no estan permitidos.**'))

}
});`

i do speak spanish, dont care about the messages

that is the thing that worked but now it doesnt work!

such rare, plz help

Welcome to Glitch @Super-Pro!

What is the error this produces? One thing that might be an issue is if your bot doesn’t have the permission to manage the message it is trying to delete. Does your bot have MANAGE_MESSAGES privilege?

Please have a look at how to ask by StackOverflow.

To anyone watching
Can someone with edit permissions quickly format his code? Thanks

Yes it does have the correct perms, it just leaves the invite there and doesnt give an error