Mutes: fix error in postMuteList

This commit is contained in:
Dragory 2019-01-12 14:32:40 +02:00
parent 69bcfb8bbd
commit 55b27674e6

View file

@ -10,7 +10,7 @@ import { LogType } from "../data/LogType";
import { GuildLogs } from "../data/GuildLogs"; import { GuildLogs } from "../data/GuildLogs";
export class MutesPlugin extends ZeppelinPlugin { export class MutesPlugin extends ZeppelinPlugin {
public static pluginName = 'mutes'; public static pluginName = "mutes";
protected actions: GuildActions; protected actions: GuildActions;
protected mutes: GuildMutes; protected mutes: GuildMutes;
@ -38,9 +38,7 @@ export class MutesPlugin extends ZeppelinPlugin {
this.actions.register("unmute", args => { this.actions.register("unmute", args => {
return this.unmuteMember(args.member, args.unmuteTime); return this.unmuteMember(args.member, args.unmuteTime);
}); });
this.actions.register("postMuteList", args => { this.actions.register("postMuteList", this.postMuteList.bind(this));
return this.postMuteList(args.channel);
});
// Check for expired mutes every 5s // Check for expired mutes every 5s
this.clearExpiredMutes(); this.clearExpiredMutes();