Skip to content

Commit

Permalink
typings(MessageEmbed): allow null for setTimestamp (#6514)
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Aug 24, 2021
1 parent c232baa commit 7aff15a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/structures/MessageEmbed.js
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -1297,7 +1297,7 @@ export class MessageEmbed {
public setFooter(text: string, iconURL?: string): this;
public setImage(url: string): this;
public setThumbnail(url: string): this;
public setTimestamp(timestamp?: Date | number): this;
public setTimestamp(timestamp?: Date | number | null): this;
public setTitle(title: string): this;
public setURL(url: string): this;
public spliceFields(index: number, deleteCount: number, ...fields: EmbedFieldData[] | EmbedFieldData[][]): this;
Expand Down

0 comments on commit 7aff15a

Please sign in to comment.