mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-21 13:38:44 +00:00
[AB-xxx] changing the method used to edit the giveaway message
This commit is contained in:
@@ -155,7 +155,7 @@ public class GiveawayServiceBean implements GiveawayService {
|
|||||||
Long giveawayId = giveaway.getGiveawayId().getId();
|
Long giveawayId = giveaway.getGiveawayId().getId();
|
||||||
log.info("Adding giveaway participating of user {} to giveaway {} in server {}.", member.getIdLong(), giveawayId, member.getGuild().getIdLong());
|
log.info("Adding giveaway participating of user {} to giveaway {} in server {}.", member.getIdLong(), giveawayId, member.getGuild().getIdLong());
|
||||||
MessageToSend messageToSend = templateService.renderEmbedTemplate(GIVEAWAY_MESSAGE_TEMPLATE_KEY, giveawayMessageModel, member.getGuild().getIdLong());
|
MessageToSend messageToSend = templateService.renderEmbedTemplate(GIVEAWAY_MESSAGE_TEMPLATE_KEY, giveawayMessageModel, member.getGuild().getIdLong());
|
||||||
return channelService.editEmbedMessageInAChannel(messageToSend.getEmbeds().get(0), messageChannel, giveaway.getMessageId())
|
return channelService.editMessageInAChannelFuture(messageToSend, messageChannel, giveaway.getMessageId())
|
||||||
.thenAccept(message -> {
|
.thenAccept(message -> {
|
||||||
self.persistAddedParticipant(member, giveawayId);
|
self.persistAddedParticipant(member, giveawayId);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user