Skip to content

Commit fe873f3

Browse files
authored
🔨 refactor: use ephermal message flag instead ephermal key (#50)
1 parent 6ccf347 commit fe873f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/commands/tips/index.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ const slashCommand = createCommand({
5454
}
5555
const tip = subjectChoices.get(subject);
5656
if (!tip) {
57-
await interaction.reply({ content: 'No tip found for that subject.', ephemeral: true });
57+
await interaction.reply({
58+
content: 'No tip found for that subject.',
59+
flags: MessageFlags.Ephemeral,
60+
});
5861
return;
5962
}
6063

@@ -68,7 +71,7 @@ const slashCommand = createCommand({
6871
},
6972
});
7073

71-
await interaction.reply({ content: 'Tip sent!', ephemeral: true });
74+
await interaction.reply({ content: 'Tip sent!', flags: MessageFlags.Ephemeral });
7275
},
7376
});
7477

0 commit comments

Comments
 (0)