Skip to content

Commit e088310

Browse files
committed
refactor: Use MessageFlags.Ephemeral (#1592)
1 parent c3189c4 commit e088310

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: guide/slash-commands/response-methods.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,10 @@ client.on(Events.InteractionCreate, async interaction => {
108108

109109
If you have a command that performs longer tasks, be sure to call `deferReply()` as early as possible.
110110

111-
Note that if you want your response to be ephemeral, you must pass the ephemeral boolean to the `InteractionDeferReplyOptions` here:
112-
113-
<!-- eslint-skip -->
111+
Note that if you want your response to be ephemeral, utilize `flags` from `InteractionDeferReplyOptions` here:
114112

115113
```js
116-
await interaction.deferReply({ ephemeral: true });
114+
await interaction.deferReply({ flags: MessageFlags.Ephemeral });
117115
```
118116

119117
It is not possible to edit a reply to change its ephemeral state once sent.

0 commit comments

Comments
 (0)