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() 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. :banana::banana::banana::banana::banana: |
Thank you!!! This wasn't directly what I needed but it the file that had it had the stuff I needed to fix my guild reorder addon and I really needed that
|
I think you can actually just use:
Code:
SlashCommandAutoComplete:InvalidateSlashCommandCache() |
You're welcome :)
And no, SlashCommandAutoComplete is the [child] class, so using it shouldn't work. Would be odd if it did. Here's how the chat defines it in esoui/ingame/chatsystem/sharedchatsystem.lua line 145: Code:
self.slashCommandAutoComplete = SlashCommandAutoComplete:New(... |
Quote:
|
All times are GMT -6. The time now is 06:14 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI