Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
DeprecationWarning: The message event is deprecated. Use messageCreate instead
client.on('messageCreate', async(msg) => {
    function isValidURL(string) {
        var res = string.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);
        return (res !== null)
    };

    var testContent = msg.content;
    if(isValidURL(testContent) && msg.channel.id !== '993037263611109437' && msg.channel.id !== '993582363734970489' && !msg.member.hasPermission('MANAGE_MESSAGES')) {
        msg.delete();
        msg.reply('you cannot send links in this server!')
    }

    if(msg.content.includes('<@!599364237797883935>')) {
        msg.delete()
       return msg.reply('you cannot ping this user')
    }
});

DeprecationWarning: The message event is deprecated. Use messageCreate instead

i keep getting this error when i @myself or put an invite link

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!