Skip to content

Commit

Permalink
docs(Messages): fix examples in messages after changes in #5758 (#5791)
Browse files Browse the repository at this point in the history
  • Loading branch information
austr1an committed Jun 9, 2021
1 parent 4511624 commit 35c2225
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion src/structures/interfaces/InteractionResponses.js
Expand Up @@ -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);
*/
Expand Down
17 changes: 9 additions & 8 deletions src/structures/interfaces/TextBasedChannel.js
Expand Up @@ -143,16 +143,17 @@ 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'
* }
* },
* files: [{
* attachment: 'entire/path/to/file.jpg',
* name: 'file.jpg'
* }]
* url: 'attachment://file.jpg'
* }
* },
* files: [{
* attachment: 'entire/path/to/file.jpg',
* name: 'file.jpg'
* }]
* })
* .then(console.log)
* .catch(console.error);
Expand Down

0 comments on commit 35c2225

Please sign in to comment.