From 40113a0760a2a42dfbfe9829c9e4ba5849aae90f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 11 Nov 2019 14:31:25 -0700 Subject: [PATCH] Use the correct reference to Mjolnir's client --- src/actions/ApplyBan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",