View Single Post
03/20/18, 09:26 AM   #9
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Originally Posted by sirinsidiator View Post
I just tried the following two commands with and without any addons enabled and it works fine for me:
Code:
/script SLASH_COMMANDS["/sleep"] = nil
/script SLASH_COMMAND_AUTO_COMPLETE:InvalidateSlashCommandCache()
After running them, the sleep command won't show up in the results for the autocomplete, where it did before.
SMH Of course!
Code:
/script SlashCommandAutoComplete:InvalidateSlashCommandCache()
I took the naming convention from original script, instead of globals lol. I'll try again.
  Reply With Quote