+
Skip to content

7.4.0

Compare
Choose a tag to compare
@1Computer1 1Computer1 released this 02 May 22:08
· 491 commits to master since this release

The indev branch has been deleted, instead master will be now where all the development takes place.
The current NPM version will instead be on the stable branch.
Documentation have also been moved to the gh-pages branch.

The tutorials have been rewritten and moved to GitBooks.
Master documentation is now available here.

Additions

  • Added AkairoClient#loadAll, meant for extending the client and adding new handlers.

  • Added TypeResolver#type, meant for getting types in a cleaner way.

  • MessageOptions#content is now allowed for CommandUtil methods.

  • Exposed previous input for ongoing infinite prompt args.

Changes

  • Discord.js version ^11.1.0 is now required.

  • AkairoClient#build() no longer calls loadAll() on the handlers.

  • ClientUtil#promptIn will now attempt to create a DM channel for users if there was not one.

  • Changed to has from hasPermissions for permission checks.

    • clientPermissions and userPermissions can now be a single permission string or number.
  • Prefix overwrites now cannot be empty strings, this would cause problems before anyways.

  • Deprecated several ClientUtil methods now available in Discord.js v11.1.

    • displayRole, use GuildMember#colorRole.
    • displayColor, use GuildMember#displayColor.
    • displayHexColor, use GuildMember#displayHexColor.
    • hoistRole, use GuildMember#hoistRole.
    • fetchMessage, use TextBasedChannel#fetchMessage.
  • Deprecated CommandUtil#send aliases.

    • CommandUtil#sendMessage.
    • CommandUtil#sendCode.
    • CommandUtil#sendEmbed.

Fixes

  • Fixed removing commands deleting still-existing prefix overwrites.

  • Fixed ClientUtil permissions-related methods for Discord.js 11.1.0.

  • Fixed missing color type in docs.

  • Argument type color no longer internally creates a RichEmbed each time.

  • Fixed TypeScript files and default exports not being loaded.

  • Minor performance improvements.

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载