mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-04-26 19:05:15 +00:00
Fix RoomUpdateError roomId argument typo (#123)
We were clearly in the process of deleting the member decleration to just have the decleration be in the constructor. When we were distracted, leaving a property named `readonly`, which shouldn't be possible imo, need to add some rule for that prompto.
This commit is contained in:
@@ -466,7 +466,7 @@ export class ProtectedRoomsSet {
|
||||
errors: IRoomUpdateError[],
|
||||
renderOptions: { title?: string, noErrorsText?: string }
|
||||
): Promise<void> {
|
||||
printActionResult(this.client, this.managementRoomId, errors, renderOptions);
|
||||
await printActionResult(this.client, this.managementRoomId, errors, renderOptions);
|
||||
}
|
||||
|
||||
public async unbanUser(user: string): Promise<IRoomUpdateError[]> {
|
||||
|
||||
@@ -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<typeof CommandException>) {
|
||||
constructor(public readonly roomId: string, ...args: ConstructorParameters<typeof CommandException>) {
|
||||
super(...args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user