~·N·~
~·N·~
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
welp i guess i will just give up and mark this as solved
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
cuz i got the rest of stuff in there
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
ik im just confused how to set it up
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
do you want me to swap to the other-js-ts thing?
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
also ain't google wrong at times..
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
so how long will this take a hour or something?
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
alright then..
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
so i have to do all of that..
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
well its my first tme codeing soooo..
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
wdym?
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
well really quick is there post to be a crash loop during this?
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
what does it mean by attaching a .commands property to your client instance
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
/home/runner/Purple-mooser-bot/index.js:20 const { Client, Collection, Events, GatewayIntentBits } = require('discord.js'); ^ SyntaxError: Identifier 'Client' has already been declared at internalCompileFunction (node:internal/vm:77:18) at wrapSafe (node:internal/modules/cjs/loader:1288:20) at Module._compile (node:internal/modules/cjs/loader:1340:27) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at node:internal/main/run_main_module:28:49 Node.js v20.10.0 nope
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
let me try this..
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
error
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
/home/runner/Purple-mooser-bot/index.js:18 client.commands = new Collection(); ^ ReferenceError: Collection is not defined at Object.<anonymous> (/home/runner/Purple-mooser-bot/index.js:18:23) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) at node:internal/main/run_main_module:28:49 Node.js v20.10.0
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
ok
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
do i put it before the client.login(process.env.token); ?
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
?
104 replies
DIAdiscord.js - Imagine an app
Created by ~·N·~ on 12/19/2023 in #djs-questions
Having trouble trying to set up slash commands.
const fs = require('node:fs'); const path = require('node:path'); const { Client, Collection, Events, GatewayIntentBits } = require('discord.js'); const { token } = require('./config.json'); const client = new Client({ intents: [GatewayIntentBits.Guilds] }); client.commands = new Collection();
104 replies