@@ -17,14 +17,13 @@ import {
1717 CommandSource ,
1818 PreparedAppCommandExecution ,
1919 CommandBuilderLike ,
20- PreRegisterCommandsEvent ,
2120 CommandKitHMREvent ,
2221} from 'commandkit' ;
2322import FsBackend from 'i18next-fs-backend' ;
2423import { basename , extname , join } from 'path' ;
2524import { FsBackendOptions } from 'i18next-fs-backend' ;
2625import { Locale } from 'discord.js' ;
27- import { existsSync , writeFileSync } from 'fs' ;
26+ import { existsSync } from 'fs' ;
2827import { CommandTranslation , CommandTranslationMetadata } from './types' ;
2928import { COMMAND_METADATA_KEY , DISCORD_LOCALES } from './constants' ;
3029import { applyTranslations } from './utils' ;
@@ -315,16 +314,4 @@ export class I18nPlugin extends RuntimePlugin<LocalizationPluginOptions> {
315314
316315 return data ;
317316 }
318-
319- public async onBeforeRegisterCommands (
320- ctx : CommandKitPluginRuntime ,
321- event : PreRegisterCommandsEvent ,
322- ) : Promise < void > {
323- event . preventDefault ( ) ;
324-
325- writeFileSync (
326- `./.commandkit/cmd.json` ,
327- JSON . stringify ( event . commands , null , 2 ) ,
328- ) ;
329- }
330317}
0 commit comments