Skip to content

Commit

Permalink
Fixed some docs (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuryyx authored Aug 6, 2023
1 parent 4cbf9f5 commit 4fcbc36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/net/dv8tion/jda/api/EmbedBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,7 @@ public EmbedBuilder setAuthor(@Nullable String name, @Nullable String url)
@Nonnull
public EmbedBuilder setAuthor(@Nullable String name, @Nullable String url, @Nullable String iconUrl)
{
//We only check if the name is null because its presence is what determines if the
// the author will appear in the embed.
// We only check if the name is null because its presence is what determines if the author will appear in the embed.
if (name == null)
{
this.author = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* .build();
*
* Modal modal = Modal.create("modmail", "Modmail")
* .addActionRows(ActionRow.of(subject), ActionRow.of(body))
* .addComponents(ActionRow.of(subject), ActionRow.of(body))
* .build();
*
* event.replyModal(modal).queue();
Expand Down

0 comments on commit 4fcbc36

Please sign in to comment.