mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
docs: Update embed examples (#308)
This commit is contained in:
parent
7450d5d72f
commit
8b1f7596e3
@ -28,7 +28,7 @@ export class Embed {
|
|||||||
* @param author - The author information.
|
* @param author - The author information.
|
||||||
* @returns The updated Embed instance.
|
* @returns The updated Embed instance.
|
||||||
* @example
|
* @example
|
||||||
* embed.setAuthor({ name: 'John Doe', iconURL: 'https://example.com/avatar.png' });
|
* embed.setAuthor({ name: 'John Doe', iconUrl: 'https://example.com/avatar.png' });
|
||||||
*/
|
*/
|
||||||
setAuthor(author?: ObjectToLower<APIEmbedAuthor>): this {
|
setAuthor(author?: ObjectToLower<APIEmbedAuthor>): this {
|
||||||
this.data.author = author && toSnakeCase(author);
|
this.data.author = author && toSnakeCase(author);
|
||||||
@ -89,7 +89,7 @@ export class Embed {
|
|||||||
* @param footer - The footer information.
|
* @param footer - The footer information.
|
||||||
* @returns The updated Embed instance.
|
* @returns The updated Embed instance.
|
||||||
* @example
|
* @example
|
||||||
* embed.setFooter({ text: 'This is the footer', iconURL: 'https://example.com/footer.png' });
|
* embed.setFooter({ text: 'This is the footer', iconUrl: 'https://example.com/footer.png' });
|
||||||
*/
|
*/
|
||||||
setFooter(footer?: ObjectToLower<Omit<APIEmbedFooter, 'proxy_icon_url'>>): this {
|
setFooter(footer?: ObjectToLower<Omit<APIEmbedFooter, 'proxy_icon_url'>>): this {
|
||||||
this.data.footer = footer && toSnakeCase(footer);
|
this.data.footer = footer && toSnakeCase(footer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user