Open DKMtomy opened 2 years ago
Heyo, I think I know what's happening here.
Your code inside the export default
probably looks something like this:
category: '',
description: '',
slash: true,
testOnly: true,
minArgs: 0,
callback: ({}) => {
// command code here
}
In this code, a minArgs is stated, but there are no args that exist. Simply adding a expectedArgs:
will not fix it, as there needs to be args specified in this. If your command is not using any args, remove any reference to args. In the case of the code I showed, it would simply be removing the minArgs: 0,
. See if removing the expectedArgs:
and minArgs: 0,
fixes the issue.
throw new Error(
WOKCommands > Command "${names[0]}" has "minArgs" property defined without "expectedArgs" property as a slash command.
); ^ Error: WOKCommands > Command "gen" has "minArgs" property defined without "expectedArgs" property as a slash command.anyone know why and when i add the expected args i get this error
DiscordAPIError: Invalid Form Body options[0].name: String value did not match validation regex.