New Menu Item not being added?

Consider the following:

var oldSceneMenu = Scene_Menu.prototype.createCommandWindow;Scene_Menu.prototype.createCommandWindow = function() { this._commandWindow = new Window_MenuCommand(0,0); this._commandWindow.setHandler('example', this.commandExample.bind(this)); oldSceneMenu.call(this);}Scene_Menu.prototype.commandExample = function() { console.log('sadsad');};When I open the menu I see all the other stuff but I don't see my example item in the menu. What am I doing wrong?
Well, you set the command handler for the new command, but you never added the command itself. You need to alias makeCommandList and then use this.addCommand("Text to show", "Internal ID", enabled (boolean, controls text alpha), ext)

Ext is arbitrary extra data. You can later, in the handler, get the extra data so you can change your action based on this. This is useful for creating multiple commands with the same symbol, but they should each act lightly differently. Useful in a cooking, crafting, or alchemy menu.

Image reference for the two functions:

6TKnxFU.png
Can you show an example please?
Can you show an example please?
Oh, sorry, I didn't realize you replied. I personally haven't messed around with making new menus and scenes too much, so I don't have a personal example, but here's how the main menu's command does it:

Spoiler
M8ztFmy.png

Original thread: https://forums.rpgmakerweb.com/threads/new-menu-item-not-being-added.46927/