How to get Prefix Commands? #6762
-
FeatureI wanted to know what is the syntax for creating prefix commands in Discord.js. Kindly Help Ideal solution or implementationKindly help with Prefix Commands in Discord.Js Alternative solutions or implementationsNo response Other contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Check the guides for how to create slash commands here. |
Beta Was this translation helpful? Give feedback.
-
If by "prefix command" you mean messages relying on and parsing the message content, instead of slash commands, you can find old guides on the archived guide version: https://v12.discordjs.guide/command-handling/. Do note, however, that Discord is planning to hide message content behind a privileged intent for large bots (100+ servers) and that they will not grant the intent just so you can have "old" commands. |
Beta Was this translation helpful? Give feedback.
-
client.on('message', message => {
}); this is the code you could use for small projects |
Beta Was this translation helpful? Give feedback.
If by "prefix command" you mean messages relying on and parsing the message content, instead of slash commands, you can find old guides on the archived guide version: https://v12.discordjs.guide/command-handling/. Do note, however, that Discord is planning to hide message content behind a privileged intent for large bots (100+ servers) and that they will not grant the intent just so you can have "old" commands.