diff --git a/src/main/java/main/giveaway/GiveawayEmbedUtils.java b/src/main/java/main/giveaway/GiveawayEmbedUtils.java index 4aef40a..a2d8189 100644 --- a/src/main/java/main/giveaway/GiveawayEmbedUtils.java +++ b/src/main/java/main/giveaway/GiveawayEmbedUtils.java @@ -61,10 +61,11 @@ public static EmbedBuilder giveawayPattern(final long guildId) { String.format(jsonParsers.getLocale("gift_ends_giveaway", guildId), endTime, endTime); embedBuilder.appendDescription(endTimeFormat); } - + + String giftHosted = String.format(jsonParsers.getLocale("gift_hosted", guildId), createdUserId); + //Hosted By - String hostedBy = String.format("\nHosted by: <@%s>", createdUserId); - embedBuilder.appendDescription(hostedBy); + embedBuilder.appendDescription(giftHosted); //Image embedBuilder.setImage(imageUrl); //Footer @@ -114,10 +115,12 @@ public static EmbedBuilder giveawayEnd(final String winners, int countWinners, f } long giveawayIdLong = giveaway.getMessageId(); - String hostedBy = String.format("\nHosted by: <@%s>", createdUserId); + String giftHosted = String.format(jsonParsers.getLocale("gift_hosted", guildId), createdUserId); + String giveawayIdDescription = String.format("\n\nGiveaway ID: `%s`", giveawayIdLong); - embedBuilder.appendDescription(hostedBy); + //Hosted By + embedBuilder.appendDescription(giftHosted); embedBuilder.appendDescription(giveawayIdDescription); if (giveaway.getUrlImage() != null) { diff --git a/src/main/resources/json/eng.json b/src/main/resources/json/eng.json index 1399b47..7d0db6b 100644 --- a/src/main/resources/json/eng.json +++ b/src/main/resources/json/eng.json @@ -63,5 +63,6 @@ "errors_descriptions_again": "Don't worry, the task is already running.\nWe will complete your Giveaway as soon as we can.", "you_wrote_date": "You wrote the date: `%s`\nNow (UTC±0): ⠀⠀⠀⠀`%s`", "schedule_start": "Launch date and time: ()\nEnd date and time: %s\nIn the channel: <#%s>", - "schedule_end": "Not set" + "schedule_end": "Not set", + "gift_hosted": "\nCreator: <@%s>" } \ No newline at end of file diff --git a/src/main/resources/json/rus.json b/src/main/resources/json/rus.json index ec4fefb..c95073b 100644 --- a/src/main/resources/json/rus.json +++ b/src/main/resources/json/rus.json @@ -63,5 +63,6 @@ "errors_descriptions_again": "Не волнуйтесь, задача уже запущена.\nМы завершим ваш Giveaway, как только сможем.", "you_wrote_date": "Вы написали дату: `%s`\nСейчас (UTC±0):⠀ ⠀`%s`", "schedule_start": "Дата и время запуска: ()\nДата и время завершения: %s\nВ канале: <#%s>", - "schedule_end": "Не задано" + "schedule_end": "Не задано", + "gift_hosted": "\nСоздатель: <@%s>" } \ No newline at end of file