@@ -39,7 +39,7 @@ import { userMemberTypeCaster } from "@fire/src/arguments/userMember";
3939import { userMemberSnowflakeTypeCaster } from "@fire/src/arguments/userMemberSnowflake" ;
4040import GuildUnavailable from "@fire/src/listeners/guildUnavailable" ;
4141import AetherStats from "@fire/src/modules/aetherstats" ;
42- import * as Sentry from "@sentry/node" ;
42+ import Sentry from "@sentry/node" ;
4343import { VellumManager } from "@vellum-flags/sdk-node" ;
4444import {
4545 AkairoClient ,
@@ -63,7 +63,7 @@ import {
6363 version as djsver ,
6464} from "discord.js" ;
6565import { ratio } from "fuzzball" ;
66- import * as i18next from "i18next" ;
66+ import i18next from "i18next" ;
6767import { Client as PGClient , SSLMode , connect } from "ts-postgres" ;
6868import { Manager } from "./Manager" ;
6969import { ApplicationCommandMessage } from "./extensions/appcommandmessage" ;
@@ -85,8 +85,6 @@ import { Module, ModuleHandler } from "./util/module";
8585import { Message } from "./ws/Message" ;
8686import { MessageUtil } from "./ws/util/MessageUtil" ;
8787import { EventType } from "./ws/util/constants" ;
88- // this shit has some weird import fuckery, this is the only way I can use it
89- const i18n = i18next as unknown as typeof i18next . default ;
9088
9189type ButtonHandler = ( button : ComponentMessage ) => Promise < any > | any ;
9290type ModalHandler = ( modal : ModalMessage ) => Promise < any > | any ;
@@ -101,7 +99,7 @@ export class Fire extends AkairoClient {
10199 restPing : number ;
102100
103101 // i18n
104- i18n : typeof i18n ;
102+ i18n : typeof i18next ;
105103
106104 // Sharding
107105 manager : Manager ;
@@ -166,7 +164,7 @@ export class Fire extends AkairoClient {
166164 this . setInterval = setInterval ;
167165 this . setTimeout = setTimeout ;
168166
169- this . i18n = i18n ;
167+ this . i18n = i18next ;
170168
171169 // @ts -ignore
172170 this . rest = new RESTManager ( this ) ;
0 commit comments