diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js index 2e6740b0..790fc5fb 100644 --- a/assets/chat/js/chat.js +++ b/assets/chat/js/chat.js @@ -223,6 +223,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; } @@ -347,9 +350,6 @@ class Chat { ), ); - this.commands - .generateAutocomplete(this.user.hasModPowers()) - .forEach((command) => this.autocomplete.add(command)); this.autocomplete.bind(this); // Chat input