shadow1111
shadow1111
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/25/2023 in #djs-questions
tried downgrading to v13 and need help for the third time today.
um i cant send code
6 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/25/2023 in #djs-questions
tried downgrading to v13 and need help for the third time today.
C:\Users\csj25\OneDrive\Desktop\Bot\index.js:3 const chalk = require("chalk") ^ Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\csj25\OneDrive\Desktop\Bot\node_modules\chalk\source\index.js from C:\Users\csj25\OneDrive\Desktop\Bot\index.js not supported. Instead change the require of C:\Users\csj25\OneDrive\Desktop\Bot\node_modules\chalk\source\index.js in C:\Users\csj25\OneDrive\Desktop\Bot\index.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (C:\Users\csj25\OneDrive\Desktop\Bot\index.js:3:15) { code: 'ERR_REQUIRE_ESM' }
6 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
im good lil bro
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
not an opinion everyone says it
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
jus nvm bro discord.py is easier
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
cus neither work
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
you said config(); defined it yesterday
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
const { Client, GatewayIntentBits, Partials } = require('discord.js');
const { TOKEN } = require('./config.json');

const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
config();



client.on('ready', () => {
console.log(`${client.user.tag} is ready to go!`);
})


client.login(TOKEN);
const { Client, GatewayIntentBits, Partials } = require('discord.js');
const { TOKEN } = require('./config.json');

const client = new Client({ intents: [GatewayIntentBits.Guilds], partials: [Partials.Channel] });
config();



client.on('ready', () => {
console.log(`${client.user.tag} is ready to go!`);
})


client.login(TOKEN);
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
ReferenceError: config is not defined
at Object.<anonymous> (C:\Users\csj25\OneDrive\Desktop\discordbot\index.js:5:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
ReferenceError: config is not defined
at Object.<anonymous> (C:\Users\csj25\OneDrive\Desktop\discordbot\index.js:5:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
and still an error
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
ok its gone
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
okk? thats what you showed me lmao this isnt support <:skull_lmao:990395587528626236>
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
TypeError: config is not a function
at Object.<anonymous> (C:\Users\csj25\OneDrive\Desktop\discordbot\index.js:6:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.16.1
TypeError: config is not a function
at Object.<anonymous> (C:\Users\csj25\OneDrive\Desktop\discordbot\index.js:6:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.16.1
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
took it out of the src folder and
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
okk? <:skull_lmao:990395587528626236>
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
thats what it is
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
<:skull_lmao:990395587528626236>
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
thats what you showed me
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
Error: Cannot find module './config.json'
Require stack:
- C:\Users\csj25\OneDrive\Desktop\discordbot\src\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\Users\csj25\OneDrive\Desktop\discordbot\src\index.js:2:19)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\\Users\\csj25\\OneDrive\\Desktop\\discordbot\\src\\index.js' ]
}
Error: Cannot find module './config.json'
Require stack:
- C:\Users\csj25\OneDrive\Desktop\discordbot\src\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\Users\csj25\OneDrive\Desktop\discordbot\src\index.js:2:19)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\\Users\\csj25\\OneDrive\\Desktop\\discordbot\\src\\index.js' ]
}
80 replies
DIAdiscord.js - Imagine an app
Created by shadow1111 on 6/24/2023 in #djs-questions
"config" is not defined
still the same error
80 replies