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

export default class ChatCommand {
/**
* @deprecated in favor of the data constructor
*/
constructor(commandKey, shouldDisplayToChat, invokeOnCommand, createdMessageType, iconClass, description, gmOnly) {
this.commandKey = commandKey;
this.shouldDisplayToChat = shouldDisplayToChat;
this.invokeOnCommand = invokeOnCommand;
this.createdMessageType = createdMessageType;
this.iconClass = iconClass;
this.description = description;
this.gmOnly = gmOnly;
}
// /**
// * The chat command, such as /command
// * @type {string}
// */
// get commandKey() {
// return this.commandKey;
// }
// set commandKey(key) {
// this.commandKey = key;
// }
// /**
// * If true, the command will be removed from the message and the message displayed to chat, such as "/command hi" -> "hi"
// * If false, no message will be displayed
// * @type {boolean}
// */
// get shouldDisplayToChat() {
// return this.shouldDisplayToChat;
// }
// set shouldDisplayToChat(shouldDisplayToChat) {
// this.shouldDisplayToChat = shouldDisplayToChat;
// }
// /**
// * The function to invoke when the command is matched
// * @type {function}
// */
// get invokeOnCommand() {
// return this.invokeOnCommand;
// }
// set invokeOnCommand(invokeOnCommand) {
// this.invokeOnCommand = invokeOnCommand;
// }
}