File tree Expand file tree Collapse file tree 9 files changed +10
-10
lines changed Expand file tree Collapse file tree 9 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ export const MenuDeeplCommand: MenuCommand = {
220
220
description : `
221
221
\`\`\`\n${ msg . content } \`\`\`\n**${ res . data . translations [ 0 ] . detected_source_language } -> EN**\n\`\`\`\n${ res . data . translations [ 0 ] . text } \`\`\`` ,
222
222
} ;
223
- await ctx . reply ( { embeds : [ embed ] , ephemeral : true } ) ;
223
+ await ctx . reply ( { embeds : [ embed ] , flags : Discord . MessageFlags . Ephemeral } ) ;
224
224
} else {
225
225
await ctx . reply (
226
226
EphemeralResponse ( "Something went wrong while trying to translate." )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const MenuGetStickerUrlCommand: MenuCommand = {
24
24
} `
25
25
)
26
26
. join ( "\n" ) ,
27
- ephemeral : true ,
27
+ flags : Discord . MessageFlags . Ephemeral ,
28
28
} ) ;
29
29
} ,
30
30
} ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export const MenuGetVoiceMessageUrlCommand: MenuCommand = {
19
19
}
20
20
await ctx . reply ( {
21
21
content : voiceUris . url ,
22
- ephemeral : true ,
22
+ flags : Discord . MessageFlags . Ephemeral ,
23
23
} ) ;
24
24
} ,
25
25
} ;
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ export const SlashRoleCommand: SlashCommand = {
311
311
] ,
312
312
} ,
313
313
execute : async ctx => {
314
- await ctx . deferReply ( { ephemeral : true } ) ;
314
+ await ctx . deferReply ( { flags : Discord . MessageFlags . Ephemeral } ) ;
315
315
const cmd = ctx . options . getSubcommand ( ) ;
316
316
try {
317
317
switch ( cmd ) {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const SlashVoiceCommand: SlashCommand = {
43
43
return ;
44
44
}
45
45
46
- await ctx . deferReply ( { ephemeral : true } ) ;
46
+ await ctx . deferReply ( { flags : Discord . MessageFlags . Ephemeral } ) ;
47
47
48
48
try {
49
49
const channel = await bot . getGuild ( ) ?. channels . create ( {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const SlashWhyBanCommand: SlashCommand = {
20
20
} ,
21
21
22
22
async execute ( ctx , bot ) {
23
- await ctx . deferReply ( { ephemeral : true } ) ;
23
+ await ctx . deferReply ( { flags : Discord . MessageFlags . Ephemeral } ) ;
24
24
const banService = await bot . container . getService ( "Bans" ) ;
25
25
const ban = await banService . getBan ( ctx . options . getString ( "query" , true ) ) ;
26
26
if ( ! ban ) {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const SlashManageMediaLinks: SlashCommand = {
28
28
switch ( cmd ) {
29
29
case "remove" :
30
30
const url = ctx . options . getString ( "url" , true ) ;
31
- await ctx . deferReply ( { ephemeral : true } ) ;
31
+ await ctx . deferReply ( { flags : Discord . MessageFlags . Ephemeral } ) ;
32
32
const db = await ( await bot . container . getService ( "SQL" ) ) . getLocalDatabase ( ) ;
33
33
if ( ! db ) {
34
34
ctx . followUp ( EphemeralResponse ( "Could not get the DB :(" ) ) ;
@@ -70,7 +70,7 @@ export const MenuManageMediaLinksCommand: MenuCommand = {
70
70
await ctx . reply ( EphemeralResponse ( "this doesn't look like a media link" ) ) ;
71
71
return ;
72
72
}
73
- await ctx . deferReply ( { ephemeral : true } ) ;
73
+ await ctx . deferReply ( { flags : Discord . MessageFlags . Ephemeral } ) ;
74
74
const db = await ( await bot . container . getService ( "SQL" ) ) . getLocalDatabase ( ) ;
75
75
if ( ! db ) {
76
76
ctx . followUp ( EphemeralResponse ( "Could not get the DB :(" ) ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import { SlashWhyBanCommand } from "./WhyBan";
23
23
import Discord , { REST } from "discord.js" ;
24
24
25
25
export function EphemeralResponse ( content : string ) : Discord . InteractionReplyOptions {
26
- return { content : content , ephemeral : true } ;
26
+ return { content : content , flags : Discord . MessageFlags . Ephemeral } ;
27
27
}
28
28
29
29
export const slashCommands = [
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export default class AdminNotifyPayload extends Payload {
29
29
if ( ! ( await server . discord . isAllowed ( ctx . user ) ) ) {
30
30
await ctx . reply ( {
31
31
content : "you're not allowed to use this button..." ,
32
- ephemeral : true ,
32
+ flags : Discord . MessageFlags . Ephemeral ,
33
33
} ) ;
34
34
return ;
35
35
}
You can’t perform that action at this time.
0 commit comments