How to disable prompt message


bot.js file

const { CommandoClient, SQLiteProvider} = require(‘discord.js-commando’);
const path = require(‘path’);
const client = new CommandoClient({
commandPrefix: “!”,
owner: ‘414062430839111682’,
disableEveryone: true,
unknownCommandResponse: false,
});
client.registry
.registerDefaultTypes()
.registerGroups([
[‘user’, ‘.’],
[‘admin’, ‘.’]
])
.registerDefaultGroups()
.registerDefaultCommands()
.registerCommandsIn(path.join(__dirname, ‘commands’));
const sqlite = require(‘sqlite’);
client.setProvider(
sqlite.open(path.join(__dirname, ‘db.sqlite3’)).then(db => new SQLiteProvider(db))
).catch(console.error);
client.on(‘ready’, () => {
console.log(‘Logged in!’);
client.user.setActivity(‘Kodlarla’);
});
client.login(process.env.TOKEN);

Old But replying anyway incase anyone else seeds this but you can use this option in your command info object: Note: Setting this to zero does still send the Usage message
* @property {number} [argsPromptLimit=Infinity] - Maximum number of times to prompt a user for a single argument. * Only applicable ifargs is specified.

Example

class myCommand extends Command {
        constructor(client){
              super(client, {
              name: 'testcommand',
              group: 'yourgrouphere',
              memberName: 'membername',
              description: 'description',
              examples: ['example [args]'],
              args: [{
                      key: 'args',
                      type: 'string'
              }
              ],
             argsPromptLimit: 0 // This is the line which disables the prompt message.
         });
}