diff --git a/src/actions/ApplyBan.ts b/src/actions/ApplyBan.ts index 36fbce48..5a4cc4a2 100644 --- a/src/actions/ApplyBan.ts +++ b/src/actions/ApplyBan.ts @@ -93,7 +93,7 @@ export async function applyUserBans(lists: BanList[], roomIds: string[], mjolnir if (bansApplied > 0) { const html = `Banned ${bansApplied} people`; const text = `Banned ${bansApplied} people`; - await this.client.sendMessage(config.managementRoom, { + await mjolnir.client.sendMessage(config.managementRoom, { msgtype: "m.notice", body: text, format: "org.matrix.custom.html",