This commit is contained in:
mmacierzanka committed 2021-06-28 03:37:08 +02:00
1 parent 5375e7bd84
commit b4fe0bd035
1 file changed
+1 -1
+1 -1
View File
@@ -162,7 +162,7 @@ class CommandManager {
command.aliases.map(a => { command.aliases.map(a => {
const aliasOccurrence: PhraseOccurrenceData | null = this.findPhraseOccurrence(a); const aliasOccurrence: PhraseOccurrenceData | null = this.findPhraseOccurrence(a);
if(aliasOccurrence) { if(aliasOccurrence) {
console.warn(`WARN! The name "${a}" is already registered as ${aliasOccurrence.type} in the "${aliasOccurrence.command.name}" command. It will be removed from the "${command.name}".`); console.warn(`WARN! The name "${a}" is already registered as ${aliasOccurrence.type} in the "${aliasOccurrence.command.name}" command. It will be removed from the "${command.name}" command.`);
const iToRemove = command.aliases.indexOf(a); const iToRemove = command.aliases.indexOf(a);
command.aliases.splice(iToRemove, 1); command.aliases.splice(iToRemove, 1);
} }