© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to make your bot run slash commands and prefix commands? - discord.js - Imagine an app
d-Iaa
discord.js - Imagine an app
•
3y ago
•
3 replies
Massicraft
How to make your bot run slash commands and prefix commands?
I configured my bot files according to the official discordjs guide
, how can I do if I want it to also execute commands with a prefix
?
commands
events
interactionCreate
.js
ready
.js
index
.js
deploy
-commands
.js
config
.json
discord.js - Imagine an app
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,693
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to make a command handler for both prefix commands and slash commands
d-Iaa
discord.js - Imagine an app / djs-questions
3y ago