mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
revert "chore(docs): example for timeout in message.delete()" (#4167)
This commit is contained in:
@@ -496,11 +496,6 @@ class Message extends Base {
|
|||||||
* message.delete({ timeout: 5000 })
|
* message.delete({ timeout: 5000 })
|
||||||
* .then(msg => console.log(`Deleted message from ${msg.author.username} after 5 seconds`))
|
* .then(msg => console.log(`Deleted message from ${msg.author.username} after 5 seconds`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
|
||||||
* // Delete a message after a short delay
|
|
||||||
* message.delete({ timeout: 5000 })
|
|
||||||
* .then(msg => console.log(`Deleted message from ${msg.author.username} after a delay`))
|
|
||||||
* .catch(console.error)
|
|
||||||
*/
|
*/
|
||||||
delete(options = {}) {
|
delete(options = {}) {
|
||||||
if (typeof options !== 'object') throw new TypeError('INVALID_TYPE', 'options', 'object', true);
|
if (typeof options !== 'object') throw new TypeError('INVALID_TYPE', 'options', 'object', true);
|
||||||
|
|||||||
Reference in New Issue
Block a user