Skip to content

Commit b7b60ea

Browse files
committed
Fixup powerlevel command from #226
1 parent d2ce0a5 commit b7b60ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/PowerLevelCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class PowerLevelCommand implements ICommand {
5858
throw Error(`Error resolving room ${args[1]}`, {cause:error})
5959
}
6060
try {
61-
await this.client.setUserPowerLevel(targetRoomId, targetRoomId, Number(pl));
61+
await this.client.setUserPowerLevel(targetId, targetRoomId, Number(pl));
6262
}
6363
catch (e) {
6464
throw new Error(`Error setting power levels in room ${targetRoomId}: ${e.body}`)

0 commit comments

Comments
 (0)