Skip to content

Commit 643d600

Browse files
committed
refactor: move setTimestamp() after setFooter()
Move the call chain order to be ordered in such a way so that the story telling is being told better and so that the code is more readable. Suggested-by: Zabuzard <zabuza.dev@gmail.com> Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
1 parent 77adc44 commit 643d600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/src/main/java/org/togetherjava/tjbot/features/roleapplication/RoleApplicationHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ protected void sendApplicationResult(final ModalInteractionEvent event, List<Str
8080
EmbedBuilder embed =
8181
new EmbedBuilder().setAuthor(applicant.getName(), null, applicant.getAvatarUrl())
8282
.setColor(CreateRoleApplicationCommand.AMBIENT_COLOR)
83-
.setTimestamp(Instant.now())
84-
.setFooter("Submitted at");
83+
.setFooter("Submitted at")
84+
.setTimestamp(Instant.now());
8585

8686
String roleString = args.getLast();
8787
MessageEmbed.Field roleField = new MessageEmbed.Field("Role", roleString, false);

0 commit comments

Comments
 (0)