mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
typings(MessageEmbed): allow null for setTimestamp (#6514)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user