Skip to content

Commit

Permalink
GH-155 Update kickReason field (#155)
Browse files Browse the repository at this point in the history
* Update kickReason field

Previously, a double "Reason: " was sent

Took 4 seconds

* One more time :)

Took 2 minutes
  • Loading branch information
Igor Michalski authored Jun 7, 2024
1 parent 862bb74 commit 31da967
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void execute(SlashCommandEvent event) {
MessageEmbed embed = new EmbedBuilder()
.setTitle("🔨 | You have been banned from " + event.getGuild().getName())
.setColor(Color.decode(this.appConfig.embedSettings.errorEmbed.color))
.setDescription("Reason: " + kickReason)
.setDescription(kickReason)
.setTimestamp(Instant.now())
.build();

Expand All @@ -80,7 +80,7 @@ public void execute(SlashCommandEvent event) {
.setTitle("✅ | Successfully banned " + user.getName())
.setColor(Color.decode(this.appConfig.embedSettings.successEmbed.color))
.setThumbnail(this.appConfig.embedSettings.successEmbed.thumbnail)
.setDescription("Reason: " + kickReason)
.setDescription(kickReason)
.setFooter("Requested by " + event.getUser().getName(), event.getUser().getAvatarUrl())
.setTimestamp(Instant.now())
.build();
Expand Down

0 comments on commit 31da967

Please sign in to comment.