Skip to content

v2.6.0

Compare
Choose a tag to compare
@zajrik zajrik released this 13 Jan 03:18
· 640 commits to master since this release

Updates

  • Add limit and clearlimit commands for limiting given commands to certain roles
    • This will likely replace the roles CommandOptions field completely as the functionality
      is much more open to customization on a per-guild basis rather than requiring guilds to
      create role names that match the given role for a command. Though this does add a level
      of setup required to bots as all commands that don't require specific permissions are
      open to all users until a server admin limits command usage to certain roles.
    • Commands are not limited to any roles by default since roles are unique to guilds
    • limit command requres args to be separated by commas, since each role name is an arg
      and role names can have spaces in them. for example <prefix>limit ping, mod will limit
      the ping command to a role that can be found by name with the full text mod via fuzzy
      comparison. Multiple role names can be passed, again separated by commas. The command
      is additive, so calling the command again with more roles will add those roles to the limiter
      for the command rather than overwriting any previously set roles
    • clearlimit does what the name suggests. It will clear all roles from the limiter for the command
  • Allow selfbots to bypass permission/role checks
  • Pass execution time and message object with command event
  • Attach associated GuildStorage to message.guild Guild object
  • Update Eval command to wait for Promises to resolve
  • Update Help command output
  • Other minor command tweaks

Deprecation

  • LocalStorage/GuildStorage#nonConcurrentAccess has been deprecated and will be removed in a future release.
    • Switch to LocalStorage/GuildStorage#queue instead. The functionality is identical but the name is more terse and it's been improved with regards to handling async callbacks
  • Command#roles may be removed in the future in favor of the new limit command functionality. Still undecided on this

Bug fixes

  • Fix for non-space command arg separators