added JSDoc comments to methods that were not commented

This commit is contained in:
mmacierzanka committed 2021-08-21 16:26:47 +02:00
1 parent a1ffd7c9d9
commit 64e15ba3c2
2 files changed
+15 -1

No files matched your search

+8 -1
View File
@@ -9,6 +9,10 @@ export class CommandManager {
prefix?: string;
argumentSeparator: string;
/**
* @param {string} prefix?
* @param {string} argumentSeparator?
*/
constructor(prefix?: string, argumentSeparator?: string) {
this.list = [];
this.prefix = prefix;
@@ -18,7 +22,6 @@ export class CommandManager {
/**
* Retrieves the command by name, alias or keyword
* @param {string} phrase - command name, alias or keyword
* @param {GetMode} [mode='ALL'] - specifies which types of command triggers will be used to find the command [*NO_PREFIX* - only keywords; *PREFIX* - names and aliases]
* @returns *Command* | *null*
*/
get(phrase: string): Command | null {
@@ -178,6 +181,10 @@ export class CommandManager {
return null;
}
/**
* @param {string} phrase?
* @returns PhraseOccurrenceData
*/
private findPhraseOccurrence(phrase?: string): PhraseOccurrenceData | null {
let returnValue: PhraseOccurrenceData | null = null;
this.list.map((c) => {