@@ -19,6 +19,7 @@ import { cutText, isNullish, isNullishOrEmpty, isNullishOrZero } from '@sapphire
1919import {
2020 EmbedBuilder ,
2121 InteractionContextType ,
22+ MessageFlags ,
2223 PermissionFlagsBits ,
2324 TimestampStyles ,
2425 User ,
@@ -147,12 +148,12 @@ export class UserCommand extends SkyraSubcommand {
147148 const action = getAction ( entry . type ) ;
148149 if ( ! action . isUndoActionAvailable ) {
149150 const content = t ( Root . TimeNotAllowed , { type : t ( getTranslationKey ( entry . type ) ) } ) ;
150- return interaction . reply ( { content, ephemeral : true } ) ;
151+ return interaction . reply ( { content, flags : MessageFlags . Ephemeral } ) ;
151152 }
152153
153154 if ( entry . isCompleted ( ) ) {
154155 const content = t ( Root . TimeNotAllowedInCompletedEntries , { caseId : entry . id } ) ;
155- return interaction . reply ( { content, ephemeral : true } ) ;
156+ return interaction . reply ( { content, flags : MessageFlags . Ephemeral } ) ;
156157 }
157158
158159 if ( duration !== 0 ) {
@@ -162,7 +163,7 @@ export class UserCommand extends SkyraSubcommand {
162163 start : time ( seconds . fromMilliseconds ( entry . createdAt ) , TimestampStyles . LongDateTime ) ,
163164 time : time ( seconds . fromMilliseconds ( next ) , TimestampStyles . RelativeTime )
164165 } ) ;
165- return interaction . reply ( { content, ephemeral : true } ) ;
166+ return interaction . reply ( { content, flags : MessageFlags . Ephemeral } ) ;
166167 }
167168 }
168169 }
@@ -173,23 +174,23 @@ export class UserCommand extends SkyraSubcommand {
173174 } ) ;
174175
175176 const content = t ( Root . EditSuccess , { caseId : entry . id } ) ;
176- return interaction . reply ( { content, ephemeral : true } ) ;
177+ return interaction . reply ( { content, flags : MessageFlags . Ephemeral } ) ;
177178 }
178179
179180 public async chatInputRunArchive ( interaction : SkyraSubcommand . Interaction ) {
180181 const entry = await this . #getCase( interaction , true ) ;
181182 await getModeration ( interaction . guild ) . archive ( entry ) ;
182183
183184 const content = getSupportedUserLanguageT ( interaction ) ( Root . ArchiveSuccess , { caseId : entry . id } ) ;
184- return interaction . reply ( { content, ephemeral : true } ) ;
185+ return interaction . reply ( { content, flags : MessageFlags . Ephemeral } ) ;
185186 }
186187
187188 public async chatInputRunDelete ( interaction : SkyraSubcommand . Interaction ) {
188189 const entry = await this . #getCase( interaction , true ) ;
189190 await getModeration ( interaction . guild ) . delete ( entry ) ;
190191
191192 const content = getSupportedUserLanguageT ( interaction ) ( Root . DeleteSuccess , { caseId : entry . id } ) ;
192- return interaction . reply ( { content, ephemeral : true } ) ;
193+ return interaction . reply ( { content, flags : MessageFlags . Ephemeral } ) ;
193194 }
194195
195196 public async viewMessageRun ( message : GuildMessage , args : SkyraSubcommand . Args ) {
@@ -217,7 +218,7 @@ export class UserCommand extends SkyraSubcommand {
217218 ) {
218219 if ( entries . length === 0 ) {
219220 const content = getSupportedUserLanguageT ( interaction ) ( Root . ListEmpty ) ;
220- return interaction . reply ( { content, ephemeral : true } ) ;
221+ return interaction . reply ( { content, flags : MessageFlags . Ephemeral } ) ;
221222 }
222223
223224 await interaction . deferReply ( { ephemeral : ! show } ) ;
0 commit comments