Skip to content

Commit

Permalink
Fix: incorrect unban function
Browse files Browse the repository at this point in the history
  • Loading branch information
CKY- committed Sep 15, 2024
1 parent d4a276e commit a3bb74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/effects/builtin/moderator-ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const model = {
const user = await twitchApi.users.getUserByName(event.effect.username);

if (user != null) {
const result = await twitchApi.moderation.unban(user.id);
const result = await twitchApi.moderation.unbanUser(user.id);

if (result === true) {
logger.debug(`${event.effect.username} was unbanned via the Ban effect.`);
Expand Down

0 comments on commit a3bb74e

Please sign in to comment.