@@ -52,7 +52,7 @@ export async function modLog(
5252 oldCaseNumber : caseNumber ,
5353 } ,
5454 } ) ;
55- return { message : t ( "mod_log.function_errors.case_id_error " ) , type : "ERROR" } ;
55+ return { message : t ( "modLog.functionErrors.caseIdError " ) , type : "ERROR" } ;
5656 }
5757 }
5858 // If mod log channel is not configured, exit the function
@@ -65,29 +65,29 @@ export async function modLog(
6565 // Construct the log message based on the action
6666 switch ( action ) {
6767 case "WARNING" :
68- message += t ( "mod_log .warning" , { moderator, user, reason } ) ;
68+ message += t ( "modLog .warning" , { moderator, user, reason } ) ;
6969 break ;
7070 case "BAN" :
71- message += t ( "mod_log .ban" , {
71+ message += t ( "modLog .ban" , {
7272 moderator,
7373 user,
7474 reason,
7575 emoji : client . allEmojis . get ( client . config . emojis . ban . id ) ?. format ,
7676 } ) ;
7777 break ;
7878 case "KICK" :
79- message += t ( "mod_log .kick" , { moderator, user, reason } ) ;
79+ message += t ( "modLog .kick" , { moderator, user, reason } ) ;
8080 break ;
8181 case "MUTE" :
82- message += t ( "mod_log .mute" , {
82+ message += t ( "modLog .mute" , {
8383 moderator,
8484 user,
8585 reason,
8686 duration : dayjs ( duration ) . locale ( guildConfig . language ) . fromNow ( true ) ,
8787 } ) ;
8888 break ;
8989 case "TIMED_BAN" :
90- message += t ( "mod_log.timed_ban " , {
90+ message += t ( "modLog.timedBan " , {
9191 moderator,
9292 user,
9393 reason,
@@ -96,7 +96,7 @@ export async function modLog(
9696 } ) ;
9797 break ;
9898 case "CHANGES" :
99- message += t ( "mod_log .changes" , {
99+ message += t ( "modLog .changes" , {
100100 moderator,
101101 user,
102102 reason,
@@ -105,26 +105,26 @@ export async function modLog(
105105 } ) ;
106106 break ;
107107 case "UNBAN" :
108- message += t ( "mod_log .unban" , { moderator, user, reason } ) ;
108+ message += t ( "modLog .unban" , { moderator, user, reason } ) ;
109109 break ;
110110 case "BAN_EXPIRED" :
111- message += t ( "mod_log.ban_expired " , {
111+ message += t ( "modLog.banExpired " , {
112112 moderator,
113113 user,
114114 reason,
115115 duration : dayjs ( duration ) . locale ( guildConfig . language ) . fromNow ( true ) ,
116116 } ) ;
117117 break ;
118118 case "TIMEOUT" :
119- message += t ( "mod_log .timeout" , {
119+ message += t ( "modLog .timeout" , {
120120 moderator,
121121 user,
122122 reason,
123123 duration : dayjs ( duration ) . locale ( guildConfig . language ) . fromNow ( true ) ,
124124 } ) ;
125125 break ;
126126 case "UNMUTE" :
127- message += t ( "mod_log .unmute" , { moderator, user, reason } ) ;
127+ message += t ( "modLog .unmute" , { moderator, user, reason } ) ;
128128 break ;
129129 }
130130
0 commit comments