From 0b80fa77f551fdc572ef3fb6c64d300607af5db1 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Fri, 24 Dec 2021 02:51:51 -0700 Subject: [PATCH] make the command snippet beefy --- .vscode/discordjs.code-snippets | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.vscode/discordjs.code-snippets b/.vscode/discordjs.code-snippets index 7e7a0fe..98fbce6 100644 --- a/.vscode/discordjs.code-snippets +++ b/.vscode/discordjs.code-snippets @@ -10,22 +10,21 @@ "scope": "javascript,typescript", "prefix": "djscmd", "body": [ - "const Discord = require('discord.js');${1:\nconst = require(\"\");\n}", + "const Discord = require('discord.js');${1:\n${2:\n}const $3 = require(\"$4\");\n}", "module.exports = {", - " name: \"$2\",", - " aliases: [$3],", + " name: \"$5\",", + " aliases: [$6],", " meta: {", - " category: '$4',", - " description: \"$5\",", - " syntax: '`$6`',", - " extra: ${7:null}${8:,\n guildOnly: true}", - " },", + " category: '$7',", + " description: \"$8\",", + " syntax: '`$9`',", + " extra: ${10:null}${11:,\n guildOnly: true}", + " },${12:\n cooldown: {\n time: $13,\n silent: ${14|true,false|}${15:,\n message: \"$16\"\\}},}", " help: new Discord.MessageEmbed()", - " .setTitle(\"Help -> $9\")", - " .setDescription(\"$10\")${11:\n .addField(\"\", \"\")}", - " .addField(\"Syntax\", \"`$6`\"),", - " async execute(message, msg, args, cmd, prefix, mention, client) {", - " if (!args.length) {return message.channel.send(`Syntax: \\`\\${prefix}$6\\``);}", + " .setTitle(\"Help -> $17\")", + " .setDescription(\"$18\")${19:\n .addField(\"$20\", \"$21\")}", + " .addField(\"Syntax\", \"`$9`\"),", + " async execute(message, msg, args, cmd, prefix, mention, client) {${22:\n if (!args.length) {return message.channel.send(`Syntax: \\`\\${prefix\\}$9\\``);\\}}", " $0", " }", "};",