Skip to content
Bibliofile edited this page Feb 1, 2017 · 5 revisions

This document assumes that the variables mentioned are accessed by an extension through ex.*.

Changes from 6.0.x to 6.1.x

Bot:

  • bot.checkGroup has been deprecated and will be removed in 6.2. Use world.isAdmin, world.isMod, etc. instead.
  • bot.world has been depricated and will be removed in 6.2. Use world instead.
  • bot.ui, bot.hook, bot.api, bot.storage, bot.preferences, have been removed. These APIs should be accessed by extensions through ex.*.

World:

  • Added.

UI:

  • ui.addMessageToConsole has been deprecated and will be removed in 6.2. Use console.write instead.
  • Event ui.tabShown event 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.buildContentFromTemplate can now accept the template and target as nodes rather than selectors.

Hook:

  • hook.on has been added as an alias of hook.listen.
  • hook.fire has been added as an alias of hook.check.
  • hook.update has been deprecated and will be removed in 6.2.

Ajax:

  • ajax.xhr has been deprecated and will be removed in 6.2.

Api:

  • api.send will now correctly throw an error when a message fails to send. In most (read all) cases bot.send should be used instead.

MessageBotExtension:

  • MessageBotExtension.isLoaded has 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, this will 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-button removed. The bot is using class="button is-primary is-pulled-right" now. This is safe to use as it relies on Bulma's classes.
  • .third-box removed. Instead, use a container with the class columns is-multiline and replace third-box with column is-one-third-desktop is-half-tablet.

Clone this wiki locally