com.github.alex1304.ultimategdbot.api.utils.menu.MenuInteraction Maven / Gradle / Ivy
package com.github.alex1304.ultimategdbot.api.utils.menu;
import discord4j.core.object.entity.Message;
import reactor.core.publisher.MonoProcessor;
abstract class MenuInteraction {
private final Message menuMessage;
private final MonoProcessor closeNotifier;
MenuInteraction(Message menuMessage, MonoProcessor closeNotifier) {
this.menuMessage = menuMessage;
this.closeNotifier = closeNotifier;
}
public Message getMenuMessage() {
return menuMessage;
}
public void closeMenu() {
closeNotifier.onComplete();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy