diff --git a/src/ProtectedRoomsSet.ts b/src/ProtectedRoomsSet.ts index 0bddbd3e..d0b00943 100644 --- a/src/ProtectedRoomsSet.ts +++ b/src/ProtectedRoomsSet.ts @@ -466,7 +466,7 @@ export class ProtectedRoomsSet { errors: IRoomUpdateError[], renderOptions: { title?: string, noErrorsText?: string } ): Promise { - printActionResult(this.client, this.managementRoomId, errors, renderOptions); + await printActionResult(this.client, this.managementRoomId, errors, renderOptions); } public async unbanUser(user: string): Promise { diff --git a/src/models/RoomUpdateError.tsx b/src/models/RoomUpdateError.tsx index c98e2ba7..e760d281 100644 --- a/src/models/RoomUpdateError.tsx +++ b/src/models/RoomUpdateError.tsx @@ -48,9 +48,7 @@ export class PermissionError extends CommandError implements IRoomUpdateError { } export class RoomUpdateException extends CommandException implements IRoomUpdateError { - roomId: string; - - constructor(public readonly: string, ...args: ConstructorParameters) { + constructor(public readonly roomId: string, ...args: ConstructorParameters) { super(...args); }