Skip to content

Commit

Permalink
Fixup powerlevel command from #226
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Feb 2, 2024
1 parent d2ce0a5 commit b7b60ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/PowerLevelCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class PowerLevelCommand implements ICommand {
throw Error(`Error resolving room ${args[1]}`, {cause:error})
}
try {
await this.client.setUserPowerLevel(targetRoomId, targetRoomId, Number(pl));
await this.client.setUserPowerLevel(targetId, targetRoomId, Number(pl));
}
catch (e) {
throw new Error(`Error setting power levels in room ${targetRoomId}: ${e.body}`)
Expand Down

0 comments on commit b7b60ea

Please sign in to comment.