Wicked ↝ 💊Ⅶ✥
DIAdiscord.js - Imagine an app
•Created by Wicked ↝ 💊Ⅶ✥ on 3/7/2024 in #djs-questions
"Started refreshing 0 application (/) commands."
Hello! I'm having trouble with a really stubborn issue in my code and I'm honestly pretty stumped. I have a minimal, but decent understanding of JS, and I'm using a command handler based on the official DJS guide + a DJS v14 tutorial that I've modified to suit the needs of my bot. My console doesn't log any errors, but despite there being a 'ping.js' command in a subfolder of the 'cmds' folder, it doesn't seem to recognize the file as an application command. I logged the file paths in the console and it's reading them just fine, but it still isn't registering 'ping.js' as a command file.
I'll post my command handler and console log in a follow-up message.
8 replies
DIAdiscord.js - Imagine an app
•Created by Wicked ↝ 💊Ⅶ✥ on 2/3/2024 in #djs-questions
Making commands customizable by the guild members
Hello!
I've seen quite a few bots with the option to let guild members create their own custom commands (like YAGPDB and RoleplayTools). I've searched everywhere and in every way I can think of, but Google and the discord.js guide haven't yielded any results accurate to what I'm looking to code into my discord bot.
Is there a way to allow users to create/edit custom slash commands? Or is that only possible using prefix commands?
Thank you to anyone who is able to help!
[Note: I have some experience with discord.js, but I am still learning]
15 replies
DIAdiscord.js - Imagine an app
•Created by Wicked ↝ 💊Ⅶ✥ on 10/23/2022 in #djs-questions
TypeError - currency.set is not a function
getting this error when using the DJS currency system guide, if anyone can help, it would be greatly appreciated <3
the part of the code that is throwing the error:
8 replies
DIAdiscord.js - Imagine an app
•Created by Wicked ↝ 💊Ⅶ✥ on 9/29/2022 in #djs-questions
[V 14.5.0] using the official DJS guide for a currency system, `getBalance` is giving me grief
hello and thank you to anyone who is willing to read this/help out!
as the title says, i am using the official discord.js guide for my bot, and i am working on a currency system at the moment. however, while the bot itself runs just fine, whenever i try to use the /balance command, it throws this error:
TypeError: Cannot read properties of undefined (reading 'getBalance')
i am following the guide at its core but i have made a few edits and additions to the code that could be causing this error. i will provide the code ASAP if no one already knows what the issue is.
i've been scouring the internet and different programming servers for answers and i haven't found a solution that works. it should be noted that this is my first time making a bot but i still have minimal knowledge of js, and this really has me stumped.
thank you to anyone willing to help, and my sincere apologies if this has an obvious answer that i'm not seeing! <a:th_rainbowheart:1008940957556805752>15 replies