make the command snippet beefy

master
Kit Kasune 3 years ago
parent 1feb3f21f3
commit 0b80fa77f5
  1. 25
      .vscode/discordjs.code-snippets

@ -10,22 +10,21 @@
"scope": "javascript,typescript", "scope": "javascript,typescript",
"prefix": "djscmd", "prefix": "djscmd",
"body": [ "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 = {", "module.exports = {",
" name: \"$2\",", " name: \"$5\",",
" aliases: [$3],", " aliases: [$6],",
" meta: {", " meta: {",
" category: '$4',", " category: '$7',",
" description: \"$5\",", " description: \"$8\",",
" syntax: '`$6`',", " syntax: '`$9`',",
" extra: ${7:null}${8:,\n guildOnly: true}", " 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()", " help: new Discord.MessageEmbed()",
" .setTitle(\"Help -> $9\")", " .setTitle(\"Help -> $17\")",
" .setDescription(\"$10\")${11:\n .addField(\"\", \"\")}", " .setDescription(\"$18\")${19:\n .addField(\"$20\", \"$21\")}",
" .addField(\"Syntax\", \"`$6`\"),", " .addField(\"Syntax\", \"`$9`\"),",
" async execute(message, msg, args, cmd, prefix, mention, client) {", " async execute(message, msg, args, cmd, prefix, mention, client) {${22:\n if (!args.length) {return message.channel.send(`Syntax: \\`\\${prefix\\}$9\\``);\\}}",
" if (!args.length) {return message.channel.send(`Syntax: \\`\\${prefix}$6\\``);}",
" $0", " $0",
" }", " }",
"};", "};",

Loading…
Cancel
Save