Firebot
Firebot copied to clipboard
[Bug] Unbanning from the Ban Effect does not work
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
- Create a new preset Effect list.
- Add the "Ban" Effect and specify the ban action.
- Specify a random user to ban.
- Add another "Ban" Effect and specify the unban action.
- Unban the same user.
- 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