From 6bdeb62f39060c3b3a6a63dc375d172f5568af6a Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 21 Oct 2021 00:18:08 -0400 Subject: remove JSON5 --- src/lib/extensions/discord-akairo/BushClient.ts | 15 ++------------- src/lib/extensions/discord.js/BushGuildMember.ts | 2 +- src/lib/extensions/global.d.ts | 3 --- 3 files changed, 3 insertions(+), 17 deletions(-) (limited to 'src/lib') diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index a053f00..6133dba 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -17,8 +17,6 @@ import { } from 'discord.js'; //@ts-ignore: no typings import eventsIntercept from 'events-intercept'; -import JSON5 from 'json5'; -import 'json5/lib/register'; import path from 'path'; import readline from 'readline'; import { Sequelize } from 'sequelize'; @@ -111,9 +109,7 @@ const rl = readline.createInterface({ type If = T extends true ? A : T extends false ? B : A | B; export class BushClient extends AkairoClient { - public static preStart(): void { - global.JSON5 = JSON5; - + public static init(): void { Structures.extend('GuildEmoji', () => BushGuildEmoji); Structures.extend('DMChannel', () => BushDMChannel); Structures.extend('TextChannel', () => BushTextChannel); @@ -143,14 +139,7 @@ export class BushClient extends AkairoClient; export class BushGuildMember extends GuildMember { diff --git a/src/lib/extensions/global.d.ts b/src/lib/extensions/global.d.ts index 6fd9d58..e10db0a 100644 --- a/src/lib/extensions/global.d.ts +++ b/src/lib/extensions/global.d.ts @@ -1,10 +1,7 @@ /* eslint-disable no-var */ -import { parse, stringify } from 'json5'; import { BushClient } from './discord-akairo/BushClient'; import { BushClientUtil } from './discord-akairo/BushClientUtil'; -type JSON5 = { parse: typeof parse; stringify: typeof stringify }; declare global { var client: BushClient; var util: BushClientUtil; - var JSON5: JSON5; } -- cgit