Skip to content

Commit

Permalink
feat(definition): add "see more"
Browse files Browse the repository at this point in the history
Close #14
  • Loading branch information
LeRoiDesKiwis committed Jun 23, 2024
1 parent 6edc77f commit 29bdc61
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public void execute(OmegaUser user, SlashCommandInteraction event) {
definitionsText.append("- ").append(definition).append("\n");
}

definitionsText.append("\nSee more [here](https://www.urbandictionary.com/define.php?term=").append(searchTerm).append(")");

event.replyEmbeds(new EmbedBuilder()
.setTitle("définitions pour `" + searchTerm.replace("+", " ") + "`")
.setColor(Color.BLUE)
Expand Down

0 comments on commit 29bdc61

Please sign in to comment.