JaBa/handlers/command-handler/utils/differentcommands.js

8 lines
371 B
JavaScript

export default function differentCommands(appCommand, localCommand) {
const appOptions = appCommand.options || [];
const localOptions = localCommand.options || [];
const appDescription = appCommand.description || "";
const localDescription = localCommand.description || "";
return localDescription !== appDescription || localOptions.length !== appOptions.length;
}