You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.3 KiB

  1. {
  2. // Place your thal-rewrite workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
  3. // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
  4. // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
  5. // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  6. // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
  7. // Placeholders with the same ids are connected.
  8. // Example:
  9. // "Print to console": {
  10. // "scope": "javascript,typescript",
  11. // "prefix": "log",
  12. // "body": [
  13. // "console.log('$1');",
  14. // "$2"
  15. // ],
  16. // "description": "Log output to console"
  17. // }
  18. "Command Base": {
  19. "scope": "javascript, typescript",
  20. "prefix": "Base",
  21. "body": ["const Command = require('../../src/structures/Command');",
  22. "module.exports = class $1 extends Command {",
  23. "constructor() {",
  24. "super({",
  25. "name: '$2',",
  26. "description: '$3',",
  27. "aliases: [$4],",
  28. "module: '$5',",
  29. "cooldown: $6,",
  30. "guildOnly: $7,",
  31. "developerOnly: $8",
  32. "});",
  33. "}",
  34. "\n",
  35. "async command(ctx) {",
  36. "$9",
  37. "}",
  38. "}"]
  39. }
  40. }