mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
typings(MessageEmbed): properly mark properties (#3822)
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
parent
25cd23e305
commit
967b533e9d
1 changed files with 4 additions and 4 deletions
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
|
|
@ -1052,9 +1052,9 @@ declare module 'discord.js' {
|
|||
export class MessageEmbed {
|
||||
constructor(data?: MessageEmbed | MessageEmbedOptions);
|
||||
public author: MessageEmbedAuthor | null;
|
||||
public color: number;
|
||||
public color?: number;
|
||||
public readonly createdAt: Date | null;
|
||||
public description: string;
|
||||
public description?: string;
|
||||
public fields: EmbedField[];
|
||||
public files: (MessageAttachment | string | FileOptions)[];
|
||||
public footer: MessageEmbedFooter | null;
|
||||
|
|
@ -1064,9 +1064,9 @@ declare module 'discord.js' {
|
|||
public provider: MessageEmbedProvider | null;
|
||||
public thumbnail: MessageEmbedThumbnail | null;
|
||||
public timestamp: number | null;
|
||||
public title: string;
|
||||
public title?: string;
|
||||
public type: string;
|
||||
public url: string;
|
||||
public url?: string;
|
||||
public readonly video: MessageEmbedVideo | null;
|
||||
public addFields(...fields: EmbedField[] | EmbedField[][]): this;
|
||||
public attachFiles(file: (MessageAttachment | FileOptions | string)[]): this;
|
||||
|
|
|
|||
Loading…
Reference in a new issue