Search in sources :

Example 1 with NowPlayingWidget

use of net.robinfriedli.aiode.command.widget.widgets.NowPlayingWidget in project aiode by robinfriedli.

the class AudioManager method createNowPlayingWidget.

void createNowPlayingWidget(CompletableFuture<Message> futureMessage, AudioPlayback playback) {
    Guild guild = playback.getGuild();
    WidgetRegistry widgetRegistry = guildManager.getContextForGuild(guild).getWidgetRegistry();
    CompletableFutures.thenAccept(futureMessage, message -> new NowPlayingWidget(widgetRegistry, guild, message).initialise());
}
Also used : WidgetRegistry(net.robinfriedli.aiode.command.widget.WidgetRegistry) Guild(net.dv8tion.jda.api.entities.Guild) NowPlayingWidget(net.robinfriedli.aiode.command.widget.widgets.NowPlayingWidget)

Aggregations

Guild (net.dv8tion.jda.api.entities.Guild)1 WidgetRegistry (net.robinfriedli.aiode.command.widget.WidgetRegistry)1 NowPlayingWidget (net.robinfriedli.aiode.command.widget.widgets.NowPlayingWidget)1