{"_id":"57863a95021efa0e00ebb5b1","category":{"_id":"5785a2bf2eca4e0e002b4d67","version":"57858bff9e80c32200234f4f","__v":0,"project":"57858bff9e80c32200234f4c","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-13T02:09:03.422Z","from_sync":false,"order":2,"slug":"explanations","title":"Explanations"},"githubsync":"","user":"57858823fc4a0f2200f02f01","__v":1,"project":"57858bff9e80c32200234f4c","version":{"_id":"57858bff9e80c32200234f4f","__v":3,"project":"57858bff9e80c32200234f4c","createdAt":"2016-07-13T00:31:59.708Z","releaseDate":"2016-07-13T00:31:59.708Z","categories":["57858bff9e80c32200234f50","57858e1b8a711d2000d1252b","5785a2bf2eca4e0e002b4d67"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Stable. I Hope.","version_clean":"0.3.0","version":"0.3.00"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-13T12:56:53.434Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Explaination\"\n}\n[/block]\nShortcuts are strings you can be parsed and converted to data. These are widely used when setting response in configs as you can't code in many varibles like params or the sender of the message. This is where Shortcuts come in.\n\nShortcuts are included with Disnode in the base Disnode.js file. All you have to do it call it!\n\n\nDisnode includes a ever growing list of default, universal short cuts (list below), but many managers require their own short cuts (for example the Youtube downloader has title, id, progess etc.) so when calling the Shortcut parser you can provide it with an array of custom shortcuts. \n\n##Example\n`[Sender] Says hi to [Param0] ` Converts to `:::at:::VictoryForPhil Says hi to @FireGamer3`\n`[Sender]` and `[Param0]` are default short cuts are converted to strings when the msg is parsed.\n\n\n\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Object - Custom Shortcut\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Key\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Desc\",\n    \"0-0\": \"shortcut\",\n    \"0-1\": \"string\",\n    \"0-2\": \"Shortcut (EX: \\\"[ID]\\\")\",\n    \"1-0\": \"data\",\n    \"1-1\": \"anything\",\n    \"1-2\": \"Data assigned to shortcut\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]","excerpt":"","slug":"shortcuts","type":"basic","title":"Shortcuts"}
[block:api-header] { "type": "basic", "title": "Explaination" } [/block] Shortcuts are strings you can be parsed and converted to data. These are widely used when setting response in configs as you can't code in many varibles like params or the sender of the message. This is where Shortcuts come in. Shortcuts are included with Disnode in the base Disnode.js file. All you have to do it call it! Disnode includes a ever growing list of default, universal short cuts (list below), but many managers require their own short cuts (for example the Youtube downloader has title, id, progess etc.) so when calling the Shortcut parser you can provide it with an array of custom shortcuts. ##Example `[Sender] Says hi to [Param0] ` Converts to `@VictoryForPhil Says hi to @FireGamer3` `[Sender]` and `[Param0]` are default short cuts are converted to strings when the msg is parsed. [block:api-header] { "type": "basic", "title": "Object - Custom Shortcut" } [/block] [block:parameters] { "data": { "h-0": "Key", "h-1": "Type", "h-2": "Desc", "0-0": "shortcut", "0-1": "string", "0-2": "Shortcut (EX: \"[ID]\")", "1-0": "data", "1-1": "anything", "1-2": "Data assigned to shortcut" }, "cols": 3, "rows": 2 } [/block]