mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
refactor(MessageEmbed): Utilise an object approach for .setAuthor() (#6966)
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -1572,6 +1572,8 @@ export class MessageEmbed {
|
||||
public addField(name: string, value: string, inline?: boolean): this;
|
||||
public addFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): this;
|
||||
public setFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): this;
|
||||
public setAuthor(options: string | EmbedAuthorData | null): this;
|
||||
/** @deprecated Supply a lone object of interface {@link EmbedAuthorData} instead of more parameters. */
|
||||
public setAuthor(name: string, iconURL?: string, url?: string): this;
|
||||
public setColor(color: ColorResolvable): this;
|
||||
public setDescription(description: string): this;
|
||||
@@ -4008,6 +4010,12 @@ export interface EditGuildTemplateOptions {
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface EmbedAuthorData {
|
||||
name: string;
|
||||
url?: string;
|
||||
iconURL?: string;
|
||||
}
|
||||
|
||||
export interface EmbedField {
|
||||
name: string;
|
||||
value: string;
|
||||
|
||||
Reference in New Issue
Block a user