From 2db87acac4fe36baa93db0a8e52d7a83b3ce2998 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 4 Feb 2022 11:01:04 -0500 Subject: clean up --- src/lib/utils/AllowedMentions.ts | 13 +++++++------ src/lib/utils/BushLogger.ts | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src/lib') diff --git a/src/lib/utils/AllowedMentions.ts b/src/lib/utils/AllowedMentions.ts index c0c76ee..7a377be 100644 --- a/src/lib/utils/AllowedMentions.ts +++ b/src/lib/utils/AllowedMentions.ts @@ -4,6 +4,13 @@ export class AllowedMentions { public everyone: boolean; public users: boolean; public roles: boolean; + + public constructor(users = true, roles = false, everyone = false) { + this.everyone = everyone; + this.roles = roles; + this.users = users; + } + public static none(): MessageMentionOptions { return { parse: [] }; } @@ -32,12 +39,6 @@ export class AllowedMentions { }; } - public constructor(users = true, roles = false, everyone = false) { - this.everyone = everyone; - this.roles = roles; - this.users = users; - } - public toObject(): MessageMentionOptions { return { parse: [ diff --git a/src/lib/utils/BushLogger.ts b/src/lib/utils/BushLogger.ts index 341fb7e..9fcc059 100644 --- a/src/lib/utils/BushLogger.ts +++ b/src/lib/utils/BushLogger.ts @@ -5,7 +5,7 @@ import { inspect } from 'util'; import { type BushSendMessageType } from '../extensions/discord-akairo/BushClient'; /** - * A custom logging utility for the bot. + * Custom logging utility for the bot. */ export class BushLogger { /** -- cgit