Skip to content

Commit

Permalink
docs: documentate embed.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
feenko committed Dec 2, 2024
1 parent e508540 commit da84623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/structures/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export class Embed extends EmbedBuilder {
this.setColor(Embed.DEFAULT_COLOR);
}

/**
* Sets default embed properties including author information if provided
* @param author The Discord user to set as the embed author
*/
setDefaults(author?: User) {
if (!author) return this;

Expand Down

0 comments on commit da84623

Please sign in to comment.