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

184
Views
jQuery.get() is not a function

When I try to run this code I get an error jQuery.get is not a function. According to the documentation it should work but it doesn't seem to run here.

// Run dotenv
const jQuery = require('jquery');
require('dotenv').config();


const Discord = require('discord.js');
const client = new Discord.Client({ intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES] });

client.on('ready', () => {
    console.log(`Started bot as ${client.user.tag}.`);
});

client.on('messageCreate', msg => {
    if (msg.content.charAt(0) === '?') {
        if (msg.content === '?g') {
            let d = new Date();
            let months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
            msg.reply("On " + d.getDate() + " " + months[d.getMonth()] + "" + Date.now());
            jQuery.get("https://example.com/");
        } else {
            const reply = "Debug";
            msg.reply(reply);
            console.log("Recieved: " + msg.content + "\nReply: " + reply);
        }   
    }
});

client.login(process.env.DISCORD_TOKEN);
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!