Archived
1.1.1
This commit is contained in:
1 parent
5375e7bd84
commit
b4fe0bd035
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user