Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Bug] Unbanning from the Ban Effect does not work

Open Vixenary opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Unbanning users from the "Ban" Effect results in an unhandled promise.

Expected Behavior

Unbanning users from the "Ban" Effect should result in either, a successful unban if the specified user is banned, or a silent (success/failure) if the user is not banned.

Steps To Reproduce

  1. Create a new preset Effect list.
  2. Add the "Ban" Effect and specify the ban action.
  3. Specify a random user to ban.
  4. Add another "Ban" Effect and specify the unban action.
  5. Unban the same user.
  6. Run the preset Effect list.

Version

5.63.2

What operating system are you using Firebot on?

Windows 11

Relevant log output

[2024-09-13 16:24:49.0540] - error: [v5.63.2] Unhandled promise rejection 
{
  message: 'twitchApi.moderation.unban is not a function',
  stack: 'TypeError: twitchApi.moderation.unban is not a function\n' +
    '    at Object.onTriggerEvent (C:\\Users\\vixen\\AppData\\Local\\firebotv5\\app-5.63.2\\resources\\app.asar\\build\\backend\\effects\\builtin\\moderator-ban.js:69:59)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
    '    at async C:\\Users\\vixen\\AppData\\Local\\firebotv5\\app-5.63.2\\resources\\app.asar\\build\\backend\\common\\effect-runner.js:89:24'
}

Contact Details (Optional)

Vixenary

Vixenary avatar Sep 13 '24 16:09 Vixenary