All user data for FoundryVTT. Includes worlds, systems, modules, and any asset in the "foundryuserdata" directory. Does NOT include the FoundryVTT installation itself.
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.

52 lines
1.4 KiB

1 year ago
  1. export default class ChatCommand {
  2. /**
  3. * @deprecated in favor of the data constructor
  4. */
  5. constructor(commandKey, shouldDisplayToChat, invokeOnCommand, createdMessageType, iconClass, description, gmOnly) {
  6. this.commandKey = commandKey;
  7. this.shouldDisplayToChat = shouldDisplayToChat;
  8. this.invokeOnCommand = invokeOnCommand;
  9. this.createdMessageType = createdMessageType;
  10. this.iconClass = iconClass;
  11. this.description = description;
  12. this.gmOnly = gmOnly;
  13. }
  14. // /**
  15. // * The chat command, such as /command
  16. // * @type {string}
  17. // */
  18. // get commandKey() {
  19. // return this.commandKey;
  20. // }
  21. // set commandKey(key) {
  22. // this.commandKey = key;
  23. // }
  24. // /**
  25. // * If true, the command will be removed from the message and the message displayed to chat, such as "/command hi" -> "hi"
  26. // * If false, no message will be displayed
  27. // * @type {boolean}
  28. // */
  29. // get shouldDisplayToChat() {
  30. // return this.shouldDisplayToChat;
  31. // }
  32. // set shouldDisplayToChat(shouldDisplayToChat) {
  33. // this.shouldDisplayToChat = shouldDisplayToChat;
  34. // }
  35. // /**
  36. // * The function to invoke when the command is matched
  37. // * @type {function}
  38. // */
  39. // get invokeOnCommand() {
  40. // return this.invokeOnCommand;
  41. // }
  42. // set invokeOnCommand(invokeOnCommand) {
  43. // this.invokeOnCommand = invokeOnCommand;
  44. // }
  45. }