View Single Post
02/24/20, 09:10 PM   #1
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Post API 100030 and slashCommandAutoComplete

Looks like the recent update modified the chat system a bit. For those who may need it, I just had to fix this for my addons.

1) Looks like slash commands are now loaded safely at EVENT_ADD_ON_LOADED.

2) For slash commands modified during live play, accessing the refresh method changed from:
Code:
SLASH_COMMAND_AUTO_COMPLETE:InvalidateSlashCommandCache()
To:
Code:
CHAT_SYSTEM.textEntry.slashCommandAutoComplete:InvalidateSlashCommandCache()

Seems odd the devs removed the global reference. Hopefully the chat system is improving. If anybody has a best-practice for this, I'm always happy to learn.

  Reply With Quote