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