You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The return value of a `.reply()` with the `fetchReply` option set to `true` is a Promise which resolves with the reply when it has been sent, but how would the same code with async/await look?
186
+
The return value of a `.reply()` with the `withResponse` option set to `true` is a promise which resolves with <DocsLinkpath="InteractionCallbackResponse:Class" />, but how would the same code with async/await look?
Copy file name to clipboardexpand all lines: guide/additional-info/changes-in-v14.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -311,7 +311,7 @@ The following properties & methods have been moved to the `GuildAuditLogsEntry`
311
311
312
312
### Interaction
313
313
314
-
Whenever an interaction is replied to and one fetches the reply, it could possibly give an `APIMessage` if the guild was not cached. However, interaction replies now always return a discord.js `Message` object with `fetchReply` as`true`.
314
+
Whenever an interaction is replied to and one fetches the reply, it could possibly give an `APIMessage` if the guild was not cached. However, interaction replies now always return an <DocsLinkpath="InteractionCallbackResponse:Class" /> with `withResponse` set to`true`.
315
315
316
316
The base interaction class is now `BaseInteraction`.
Copy file name to clipboardexpand all lines: guide/popular-topics/faq.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -319,7 +319,7 @@ If you're using [sharding](/sharding/), a specific shard's heartbeat can be foun
319
319
The second, **Roundtrip Latency**, describes the amount of time a full API roundtrip (from the creation of the command message to the creation of the response message) takes. You then edit the response to the respective value to avoid needing to send yet another message:
Lastly, you may require the `Message` object of a reply for various reasons, such as adding reactions. You can use the `ChatInputCommandInteraction#fetchReply()` method to fetch the `Message`instance of an initial response:
203
+
Lastly, you may require the `Message` object of a reply for various reasons, such as adding reactions. Pass `withResponse: true` to obtain the <DocsLinkpath="InteractionCallbackResponse:Class" />. You can then access the `Message`object like so:
You can also use the `ChatInputCommandInteraction#fetchReply()` method to fetch the `Message` instance. Do note that this incurs an extra API call in comparison to `withResponse: true`:
0 commit comments