github botlabs-gg/yagpdb v2.96.0

5 hours ago

Highlights

  • Enable or disable custom commands from the list. Each command on the custom commands page now has an on/off switch, so you don't need to open the command to change it. Works on mobile too.
  • Word list rules show the matched word. The punishment reason now includes the word that triggered the rule and the list name, e.g. `badword` in list `Slurs`. For whitelist rules, it reads not in list.
  • Slash commands are logged in full. The executed commands log now shows the whole slash command with its options, e.g. /role add user:… role:…, instead of role (slashcommand).

Changes to custom commands

  • Removed the deprecated component message functions: sendComponentMessage, sendComponentMessageRetID, sendComponentMessageNoEscape, sendComponentMessageNoEscapeRetID, editComponentMessage and editComponentMessageNoEscape. Use sendMessage / editMessage with complexMessage instead.
  • exec runs as the right member.
    • In context menu commands it now runs as the member who used the menu, not the author of the targeted message.
    • In role trigger commands it runs as the member who changed the roles.
  • Delayed runs don't inherit mention permissions. mentionEveryone, mentionHere and mentionRoles from the calling command no longer carry over to execCC with a delay or scheduleUniqueCC. Call them again in the scheduled command if it needs to ping.
  • execCC with no delay finishes before the calling command continues.
  • sendTemplate and sendTemplateDM share the calling command's limits. They now count toward its operation and memory limits instead of getting a fresh budget.
  • More functions count toward the DM limit. Messages sent to a DM channel with sendMessage and similar functions now count toward the sendDM limit.
  • .TargetMember is a Member. In context menu and role trigger commands it was a MemberState. In context menu commands it is nil if the target isn't in the server.
  • Edit-triggered commands: only commands with "trigger on edit" count toward the per-message run limit, so other matching commands no longer stop them from running.

Moderation

  • Moderation commands now show an error asking you to try again if the bot can't look up the target, instead of skipping the role hierarchy check.
  • giverole no longer gives roles that have permissions the person running it doesn't have.
  • giverole now cancels the target's pending timed role add. It used to cancel the invoker's.

Tickets

  • Adding or removing members and renaming a ticket now require ticket staff: ticket mod or admin roles, or Manage Channels.
  • Closing a ticket requires the ticket author or ticket staff.
  • adminsonly requires ticket admin: ticket admin roles, Manage Server or Administrator.

Other commands

  • Trivia no longer breaks on button clicks or bad questions, shows a clear error when it can't fetch a question, and ends rounds on the timer.

Control panel

  • Role commands can only be created for, or changed to, roles below your own highest role.

  • The message creator only loads existing messages from channels you can read in Discord, and requires write access.

  • A few other performance and bug fixes.

Full Changelog: v2.95.4...v2.96.0

Don't miss a new yagpdb release

NewReleases is sending notifications on new releases.