File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const AIConfig: Required<ConfigureAI> = {
67
67
disableBuiltInTools : false ,
68
68
messageFilter : async ( commandkit , message ) => {
69
69
const prefixOrPrefixes =
70
- await commandkit . config . getMessageCommandPrefix ( message ) ;
70
+ await commandkit . appConfig . getMessageCommandPrefix ( message ) ;
71
71
72
72
const prefixes = Array . isArray ( prefixOrPrefixes )
73
73
? prefixOrPrefixes
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function locale(locale?: Locale): CommandLocalizationContext {
30
30
const commandkit = context . commandkit ;
31
31
32
32
const i18n = useI18n ( commandkit ) ;
33
- const detectedLocale : Locale = locale || commandkit . config . defaultLocale ;
33
+ const detectedLocale : Locale = locale || commandkit . appConfig . defaultLocale ;
34
34
35
35
return {
36
36
t : i18n . getFixedT ( detectedLocale , `${ context . event } .event` ) ,
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export class I18nPlugin extends RuntimePlugin<LocalizationPluginOptions> {
197
197
}
198
198
199
199
// Set the default locale for command execution
200
- ctx . commandkit . config . defaultLocale = ( this . i18n . language ||
200
+ ctx . commandkit . appConfig . defaultLocale = ( this . i18n . language ||
201
201
'en-US' ) as Locale ;
202
202
203
203
Logger . info ( 'I18nPlugin has been activated' ) ;
You can’t perform that action at this time.
0 commit comments