[AB-30] adding giveaway feature

This commit is contained in:
Sheldan
2023-12-10 14:25:08 +01:00
parent 1ba8219d7b
commit e84b5ecbb5
46 changed files with 3021 additions and 1 deletions

View File

@@ -162,6 +162,13 @@ public class InteractionServiceBean implements InteractionService {
return replyEmbed(templateKey, new Object(), callback);
}
@Override
public List<CompletableFuture<Message>> sendEmbed(String templateKey, InteractionHook interactionHook) {
Long serverId = interactionHook.getInteraction().getGuild().getIdLong();
MessageToSend messageToSend = templateService.renderEmbedTemplate(templateKey, new Object(), serverId);
return sendMessageToInteraction(messageToSend, interactionHook);
}
@Override
public CompletableFuture<Message> editOriginal(MessageToSend messageToSend, InteractionHook interactionHook) {
Long serverId = interactionHook.getInteraction().getGuild().getIdLong();