Skip to content

Commit

Permalink
Changed EmbedManager constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed Jan 23, 2021
1 parent 145be53 commit 7457f01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding 'UTF-8'

group 'me.dkim19375'
version '1.1.0'
version '1.2.0'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ public EmbedManager(final @Nullable String heading, final @Nullable String headi
embedBuilder.setTitle(title, titleURL);
}

public EmbedManager(final @Nullable String heading, final @Nullable String headingIcon, final @Nullable Color color, final @Nullable String cmd,
public EmbedManager(final @Nullable User user, final @Nullable Color color, final @Nullable String cmd,
final @Nullable String title) {
embedBuilder.setAuthor(heading, null, headingIcon);
if (user != null) {
embedBuilder.setAuthor(user.getName(), null, user.getAvatarUrl());
}
embedBuilder.setTimestamp(Instant.now());
embedBuilder.setColor(color);
embedBuilder.setFooter(cmd);
Expand Down

0 comments on commit 7457f01

Please sign in to comment.