From 06c4390549bad0f4304679c1e4bd35cc202241c5 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 26 Oct 2019 13:06:32 -0400 Subject: [PATCH] use util binded to client on modlogs --- src/commands/modlogs.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/commands/modlogs.ts b/src/commands/modlogs.ts index ec54514..1a66f15 100644 --- a/src/commands/modlogs.ts +++ b/src/commands/modlogs.ts @@ -1,12 +1,10 @@ import { Message } from 'eris'; // eslint-disable-next-line import/no-unresolved import { createPaginationEmbed } from 'eris-pagination'; -import { Client, Util } from '..'; +import { Client } from '..'; import { Command, RichEmbed } from '../class'; export default class Modlogs extends Command { - util: Util = new Util(this.client) - constructor(client: Client) { super(client); this.name = 'modlogs'; @@ -42,7 +40,7 @@ export default class Modlogs extends Command { }); const users = [...new Set(query.map((log) => log.userID))].map((u) => `<@${u}>`); - const logs = this.util.splitFields(formatted); + const logs = this.client.util.splitFields(formatted); const embeds = logs.map((l) => { const embed = new RichEmbed(); @@ -59,7 +57,7 @@ export default class Modlogs extends Command { createPaginationEmbed(message, this.client, embeds, {}, msg); return msg; } catch (error) { - return this.util.handleError(error, message, this); + return this.client.util.handleError(error, message, this); } } }