From 2a988e3610050a9062d4ac061e49ebfce217e874 Mon Sep 17 00:00:00 2001 From: Peter-MJ-Parker <34216187+Peter-MJ-Parker@users.noreply.github.com> Date: Sun, 11 Jun 2023 23:48:03 -0500 Subject: [PATCH] refactor: remove options from execute function This is to support the upcoming options method in the future. Use context to find options for now. --- snippets/snippets.code-snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/snippets.code-snippets b/snippets/snippets.code-snippets index 81d7812..daf5c0f 100644 --- a/snippets/snippets.code-snippets +++ b/snippets/snippets.code-snippets @@ -36,7 +36,7 @@ "scope": "js,ts", "prefix": "serncommand", "body": [ - "const { commandModule, CommandType } = require('@sern/handler');\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx, options) => {\r\n\t\t$3\r\n\t},\r\n});" + "const { commandModule, CommandType } = require('@sern/handler');\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx) => {\r\n\t\t$3\r\n\t},\r\n});" ], "description": "Create a simple command in sern." }, @@ -52,7 +52,7 @@ "scope": "js,ts", "prefix": "serncommandesm", "body": [ - "import { commandModule, CommandType } from '@sern/handler';\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx, options) => {\r\n\t\t$3\r\n\t},\r\n});" + "import { commandModule, CommandType } from '@sern/handler';\r\n\r\nexport default commandModule({\r\n\ttype: CommandType.$1,\r\n\tplugins: [],\r\n\tdescription: '$2',\r\n\toptions: [],\r\n\texecute: async (ctx) => {\r\n\t\t$3\r\n\t},\r\n});" ], "description": "Create a simple command in sern." }