@@ -18,29 +18,37 @@ export const configureSubcommand = (
1818) =>
1919 subcommand
2020 . setName ( "blacklist" )
21- . setDescription ( localizer ( "en-US" , "commands.config.blacklist.description" ) )
21+ . setDescription (
22+ localizer ( "en-US" , "commands.serverconfig.blacklist.description" ) ,
23+ )
2224 . addUserOption ( ( option ) =>
2325 option
2426 . setName ( "member" )
2527 . setDescription (
26- localizer ( "en-US" , "commands.config.blacklist.member_description" ) ,
28+ localizer (
29+ "en-US" ,
30+ "commands.serverconfig.blacklist.member_description" ,
31+ ) ,
2732 )
2833 . setRequired ( true ) ,
2934 )
3035 . addStringOption ( ( option ) =>
3136 option
3237 . setName ( "action" )
3338 . setDescription (
34- localizer ( "en-US" , "commands.config.blacklist.action_description" ) ,
39+ localizer (
40+ "en-US" ,
41+ "commands.serverconfig.blacklist.action_description" ,
42+ ) ,
3543 )
3644 . setRequired ( true )
3745 . addChoices (
3846 {
39- name : localizer ( "en-US" , "commands.config.options .add" ) ,
47+ name : localizer ( "en-US" , "commands.choices .add" ) ,
4048 value : "add" ,
4149 } ,
4250 {
43- name : localizer ( "en-US" , "commands.config.options .remove" ) ,
51+ name : localizer ( "en-US" , "commands.choices .remove" ) ,
4452 value : "remove" ,
4553 } ,
4654 ) ,
@@ -81,9 +89,9 @@ export async function execute(
8189 // 2a. Prevent blacklisting bots (including TomoriBot herself)
8290 if ( targetDiscordUser . bot ) {
8391 await replyInfoEmbed ( interaction , locale , {
84- titleKey : "commands.config .blacklist.cannot_blacklist_bot_title" ,
92+ titleKey : "commands.serverconfig .blacklist.cannot_blacklist_bot_title" ,
8593 descriptionKey :
86- "commands.config .blacklist.cannot_blacklist_bot_description" ,
94+ "commands.serverconfig .blacklist.cannot_blacklist_bot_description" ,
8795 descriptionVars : {
8896 user_name : targetDiscordUser . username ,
8997 } ,
@@ -106,9 +114,10 @@ export async function execute(
106114 // 5. Check if personalization is enabled at all
107115 if ( ! tomoriState . config . personal_memories_enabled ) {
108116 await replyInfoEmbed ( interaction , locale , {
109- titleKey : "commands.config.blacklist.personalization_disabled_title" ,
117+ titleKey :
118+ "commands.serverconfig.blacklist.personalization_disabled_title" ,
110119 descriptionKey :
111- "commands.config .blacklist.personalization_disabled_description" ,
120+ "commands.serverconfig .blacklist.personalization_disabled_description" ,
112121 color : ColorCode . WARN ,
113122 } ) ;
114123 return ;
@@ -135,9 +144,10 @@ export async function execute(
135144 `Failed to register target user ${ targetDiscordUser . id } during blacklist command.` ,
136145 ) ;
137146 await replyInfoEmbed ( interaction , locale , {
138- titleKey : "commands.config.blacklist.user_registration_failed_title" ,
147+ titleKey :
148+ "commands.serverconfig.blacklist.user_registration_failed_title" ,
139149 descriptionKey :
140- "commands.config .blacklist.user_registration_failed_description" ,
150+ "commands.serverconfig .blacklist.user_registration_failed_description" ,
141151 descriptionVars : {
142152 user_name : targetDiscordUser . username ,
143153 } ,
@@ -167,9 +177,9 @@ export async function execute(
167177 // 7a. Prevent adding if already blacklisted
168178 if ( action === "add" && isAlreadyBlacklisted ) {
169179 await replyInfoEmbed ( interaction , locale , {
170- titleKey : "commands.config .blacklist.already_blacklisted_title" ,
180+ titleKey : "commands.serverconfig .blacklist.already_blacklisted_title" ,
171181 descriptionKey :
172- "commands.config .blacklist.already_blacklisted_description" ,
182+ "commands.serverconfig .blacklist.already_blacklisted_description" ,
173183 descriptionVars : {
174184 user_name : targetDiscordUser . username ,
175185 } ,
@@ -181,8 +191,9 @@ export async function execute(
181191 // 7b. Prevent removing if not blacklisted
182192 if ( action === "remove" && ! isAlreadyBlacklisted ) {
183193 await replyInfoEmbed ( interaction , locale , {
184- titleKey : "commands.config.blacklist.not_blacklisted_title" ,
185- descriptionKey : "commands.config.blacklist.not_blacklisted_description" ,
194+ titleKey : "commands.serverconfig.blacklist.not_blacklisted_title" ,
195+ descriptionKey :
196+ "commands.serverconfig.blacklist.not_blacklisted_description" ,
186197 descriptionVars : {
187198 user_name : targetDiscordUser . username ,
188199 } ,
@@ -214,17 +225,17 @@ export async function execute(
214225 // 9. Send success confirmation message (Rule #12, #19)
215226 if ( action === "add" ) {
216227 await replyInfoEmbed ( interaction , locale , {
217- titleKey : "commands.config .blacklist.added_title" ,
218- descriptionKey : "commands.config .blacklist.added_description" ,
228+ titleKey : "commands.serverconfig .blacklist.added_title" ,
229+ descriptionKey : "commands.serverconfig .blacklist.added_description" ,
219230 descriptionVars : {
220231 user_name : targetDiscordUser . username ,
221232 } ,
222233 color : ColorCode . SUCCESS ,
223234 } ) ;
224235 } else {
225236 await replyInfoEmbed ( interaction , locale , {
226- titleKey : "commands.config .blacklist.removed_title" ,
227- descriptionKey : "commands.config .blacklist.removed_description" ,
237+ titleKey : "commands.serverconfig .blacklist.removed_title" ,
238+ descriptionKey : "commands.serverconfig .blacklist.removed_description" ,
228239 descriptionVars : {
229240 user_name : targetDiscordUser . username ,
230241 } ,
0 commit comments