# Removing the unknown command response

Sometimes, you may want to remove the unknown command response from your bot. Be it Cleverbot or some other reason; sometimes you want it gone, and it's quite simple to remove.

Head over to your index.js file and find your client.registry variable. All you have to do to remove the unknown command response is adding unknownCommand and setting it to false in .registerDefaultCommands(), under your registry:



 
 
 

client.registry
	// ...
	.registerDefaultCommands({
		unknownCommand: false,
	});

That's all there is to it!

You're browsing the guide for discord.js v12. Check out what's new in discord.js v13.
[Dismiss for 1 week]