diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js index 2411c67c..3dda3d37 100644 --- a/assets/chat/js/chat.js +++ b/assets/chat/js/chat.js @@ -222,6 +222,9 @@ class Chat { this.user = this.addUser(user); this.authenticated = true; } + this.commands + .generateAutocomplete(this.user.hasModPowers()) + .forEach((command) => this.autocomplete.add(command)); this.setDefaultPlaceholderText(); return this; } @@ -346,9 +349,6 @@ class Chat { ), ); - this.commands - .generateAutocomplete(this.user.hasModPowers()) - .forEach((command) => this.autocomplete.add(command)); this.autocomplete.bind(this); // Chat input