mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 21:43:33 +01:00
This commit is contained in:
@@ -164,7 +164,10 @@ class InteractionResponses {
|
||||
* @returns {Promise<void>}
|
||||
* @example
|
||||
* // Remove the components from the message
|
||||
* interaction.update("A button was clicked", { components: [] })
|
||||
* interaction.update({
|
||||
* content: "A button was clicked",
|
||||
* components: []
|
||||
* })
|
||||
* .then(console.log)
|
||||
* .catch(console.error);
|
||||
*/
|
||||
|
||||
@@ -143,7 +143,8 @@ class TextBasedChannel {
|
||||
* .catch(console.error);
|
||||
* @example
|
||||
* // Send an embed with a local image inside
|
||||
* channel.send('This is an embed', {
|
||||
* channel.send({
|
||||
* content: 'This is an embed',
|
||||
* embed: {
|
||||
* thumbnail: {
|
||||
* url: 'attachment://file.jpg'
|
||||
|
||||
Reference in New Issue
Block a user