From 55b27674e6af47829d4b7da7858de9e370d88582 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 12 Jan 2019 14:32:40 +0200 Subject: [PATCH] Mutes: fix error in postMuteList --- src/plugins/Mutes.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/Mutes.ts b/src/plugins/Mutes.ts index 12bb349b..c93e9f17 100644 --- a/src/plugins/Mutes.ts +++ b/src/plugins/Mutes.ts @@ -10,7 +10,7 @@ import { LogType } from "../data/LogType"; import { GuildLogs } from "../data/GuildLogs"; export class MutesPlugin extends ZeppelinPlugin { - public static pluginName = 'mutes'; + public static pluginName = "mutes"; protected actions: GuildActions; protected mutes: GuildMutes; @@ -38,9 +38,7 @@ export class MutesPlugin extends ZeppelinPlugin { this.actions.register("unmute", args => { return this.unmuteMember(args.member, args.unmuteTime); }); - this.actions.register("postMuteList", args => { - return this.postMuteList(args.channel); - }); + this.actions.register("postMuteList", this.postMuteList.bind(this)); // Check for expired mutes every 5s this.clearExpiredMutes();