mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
refactor(MessageEmbed): Deprecate strings for setAuthor() (completely) and setFooter() (#7153)
This commit is contained in:
11
typings/index.d.ts
vendored
11
typings/index.d.ts
vendored
@@ -1694,11 +1694,13 @@ 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(options: EmbedAuthorData | null): this;
|
||||
/** @deprecated Supply a lone object of interface {@link EmbedAuthorData} instead. */
|
||||
public setAuthor(name: string, iconURL?: string, url?: string): this;
|
||||
public setColor(color: ColorResolvable): this;
|
||||
public setDescription(description: string): this;
|
||||
public setFooter(options: EmbedFooterData | null): this;
|
||||
/** @deprecated Supply a lone object of interface {@link EmbedFooterData} instead. */
|
||||
public setFooter(text: string, iconURL?: string): this;
|
||||
public setImage(url: string): this;
|
||||
public setThumbnail(url: string): this;
|
||||
@@ -4318,6 +4320,11 @@ export interface EmbedFieldData {
|
||||
inline?: boolean;
|
||||
}
|
||||
|
||||
export interface EmbedFooterData {
|
||||
text: string;
|
||||
iconURL?: string;
|
||||
}
|
||||
|
||||
export type EmojiIdentifierResolvable = string | EmojiResolvable;
|
||||
|
||||
export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji;
|
||||
|
||||
Reference in New Issue
Block a user