mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(Message): add timeout to Message#delete example (#4090)
This commit is contained in:
@@ -493,8 +493,8 @@ class Message extends Base {
|
||||
* @returns {Promise<Message>}
|
||||
* @example
|
||||
* // Delete a message
|
||||
* message.delete()
|
||||
* .then(msg => console.log(`Deleted message from ${msg.author.username}`))
|
||||
* message.delete({ timeout: 5000 })
|
||||
* .then(msg => console.log(`Deleted message from ${msg.author.username} after 5 seconds`))
|
||||
* .catch(console.error);
|
||||
*/
|
||||
delete(options = {}) {
|
||||
|
||||
Reference in New Issue
Block a user