King
DIAdiscord.js - Imagine an app
•Created by King on 5/12/2024 in #djs-questions
help
const fetch = require('node-fetch');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\georg\Desktop\brickbronze\looker\node_modules\node-fetch\src\index.js from C:\Users\georg\Desktop\brickbronze\looker\main.js not supported.
Instead change the require of index.js in C:\Users\georg\Desktop\brickbronze\looker\main.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (C:\Users\georg\Desktop\brickbronze\looker\main.js:2:15) {
code: 'ERR_REQUIRE_ESM'
}
10 replies
DIAdiscord.js - Imagine an app
•Created by King on 5/11/2024 in #djs-questions
why cant i see my slash command when i test it? its not working
15 replies
DIAdiscord.js - Imagine an app
•Created by King on 5/11/2024 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'GUILD_VOICE_STATES')
why is this happening
const { Client, GatewayIntentBits } = require('discord.js')
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.FLAGS.GUILD_VOICE_STATES
]
})
8 replies