improved code safety by adding readonly keywords

This commit is contained in:
mmacierzanka committed 2021-08-31 18:21:52 +02:00
1 parent 7d05248fdb
commit 4473e7f404
6 files changed
+39 -39

No files matched your search

+3 -3
View File
@@ -12,17 +12,17 @@ export class CommandManager {
* List of commands registered in the manager
* @type {Array} {@link Command}
*/
list: Command[];
public readonly list: Command[];
/**
* Prefix used as a way to trigger the bot using messages
* @type {string}
*/
prefix?: string;
public readonly prefix?: string;
/**
* Separator used to split user input to a list of {@link InputParameter}s (applies to prefix interactions)
* @type {string}
*/
parameterSeparator: string;
public readonly parameterSeparator: string;
/**
* @constructor