CoderZen
CoderZen
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
im so greatful
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
awesome, that works
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
this?
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
-const commandFiles = fs.readdirSync(`./src/commands/${folder}`).filter((file) => file.endsWith(`.js`));

+const command = fs.readdirSync(`./src/commands/${folder}`).filter((file) => file.endsWith(`.js`));
-const commandFiles = fs.readdirSync(`./src/commands/${folder}`).filter((file) => file.endsWith(`.js`));

+const command = fs.readdirSync(`./src/commands/${folder}`).filter((file) => file.endsWith(`.js`));
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
handleCommands?
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
ok
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
is that a good idea?
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
so im gonna write the code from scratch
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
i dont know what to do anymore
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
huh
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
assuming its fetching those
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
commandFiles are those who ends with .js
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
folder = commandFolders for example folders inside the 'commands' directory such as 'tools'
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
property is a constant with value {folder, ...commandFiles};
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
other than a few parts
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
but i was able to understand
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
i did follow
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
but it breaks it what
125 replies
DIAdiscord.js - Imagine an app
Created by CoderZen on 8/12/2023 in #djs-questions
command.execute is not a function
commands.set(command.data.name, properties)
125 replies