Skip to content

Commit

Permalink
Fixing another bug in the feedback system.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Mar 7, 2023
1 parent 8a75e78 commit d2ef530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/de/presti/ree6/events/MenuEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,14 @@ public void onModalInteraction(@NotNull ModalInteractionEvent event) {

switch (event.getModalId()) {
case "re_feedback_modal" -> {
event.deferReply(true).queue();

EmbedBuilder embedBuilder = new EmbedBuilder()
.setTitle(LanguageService.getByGuild(event.getGuild(), "label.feedback"))
.setColor(Color.GREEN)
.setThumbnail(event.getUser().getEffectiveAvatarUrl())
.setDescription("```" + event.getValue("re_feedback_text").getAsString() + "```")
.setFooter("By " + event.getUser().getAsTag() + "(" + event.getUser().getId() + ")", event.getUser().getAvatarUrl())
.setFooter("By " + event.getUser().getAsTag() + " (" + event.getUser().getId() + ")", event.getUser().getAvatarUrl())
.setTimestamp(Instant.now());

Main.getInstance().getCommandManager().sendMessage(embedBuilder, BotWorker.getShardManager().getTextChannelById(1082266502738231336L));
Expand Down

0 comments on commit d2ef530

Please sign in to comment.