typings(MessageEmbed): allow null for setTimestamp (#6514)

This commit is contained in:
Jeroen Claassens
2021-08-24 22:19:03 +02:00
committed by GitHub
parent c232baa715
commit 7aff15a055
2 changed files with 3 additions and 2 deletions

View File

@@ -374,7 +374,8 @@ class MessageEmbed {
/**
* Sets the timestamp of this embed.
* @param {Date|number} [timestamp=Date.now()] The timestamp or date
* @param {Date|number|null} [timestamp=Date.now()] The timestamp or date.
* If `null` then the timestamp will be unset (i.e. when editing an existing {@link MessageEmbed})
* @returns {MessageEmbed}
*/
setTimestamp(timestamp = Date.now()) {