-
Notifications
You must be signed in to change notification settings - Fork 3
Change Notes
Bibliofile edited this page Feb 1, 2017
·
5 revisions
This document assumes that the variables mentioned are accessed by an extension through ex.*.
Bot:
-
bot.checkGrouphas been deprecated and will be removed in 6.2. Useworld.isAdmin,world.isMod, etc. instead. -
bot.worldhas been depricated and will be removed in 6.2. Useworldinstead. -
bot.ui,bot.hook,bot.api,bot.storage,bot.preferences, have been removed. These APIs should be accessed by extensions throughex.*.
World:
- Added.
UI:
-
ui.addMessageToConsolehas been deprecated and will be removed in 6.2. Useconsole.writeinstead. - Event
ui.tabShownevent added, the only argument passed will be the tab which was shown. -
ui.addTabGroup, can now accept a third argument,parent, which can be used to add tab groups within other tab groups. -
ui.buildContentFromTemplatecan now accept the template and target as nodes rather than selectors.
Hook:
-
hook.onhas been added as an alias ofhook.listen. -
hook.firehas been added as an alias ofhook.check. -
hook.updatehas been deprecated and will be removed in 6.2.
Ajax:
-
ajax.xhrhas been deprecated and will be removed in 6.2.
Api:
-
api.sendwill now correctly throw an error when a message fails to send. In most (read all) casesbot.sendshould be used instead.
MessageBotExtension:
-
MessageBotExtension.isLoadedhas been added to check if an extension is currently loaded. -
MessageBotExtension.install(id)has been added to install extensions. This should not be used without the user's consent. -
MessageBotExtension.uninstall(id)has been added to uninstall extensions. This should not be used without the user's consent. - Method signature changed to
MessageBotExtension(namespace, uninstall)to allow creating an uninstall function while creating the extension. If specified here,thiswill be bound to the returned extension.
Page Styling:
- The bot is now using Bulma, with a few tweaks.
- $primary: #182b73;
- $primary-inverse: #fff;
- $red: #f00;
-
.top-right-buttonremoved. The bot is usingclass="button is-primary is-pulled-right"now. This is safe to use as it relies on Bulma's classes. -
.third-boxremoved. Instead, use a container with the classcolumns is-multilineand replacethird-boxwithcolumn is-one-third-desktop is-half-tablet.