Skip to content

Commit

Permalink
Expose services of interaction hub (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs authored Jan 19, 2024
1 parent 62aed61 commit 3cffd70
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ license {
}

group = "de.chojo"
version = "2.9.3+beta.19"
version = "2.9.5+beta.19"
description = "Discord utilities for use with JDA"

publishData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import de.chojo.jdautil.util.Guilds;
import de.chojo.jdautil.util.SlashCommandUtil;
import de.chojo.jdautil.wrapper.EventContext;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.events.guild.GuildJoinEvent;
import net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent;
Expand Down Expand Up @@ -314,4 +313,20 @@ public Collection<U> getUser() {
public Collection<M> getMessage() {
return Set.copyOf(messages.values());
}

public MenuService buttonService() {
return buttons;
}

public PageService pageServices() {
return pages;
}

public ModalService modalService() {
return modalService;
}

public ConversationService conversationService() {
return conversationService;
}
}

0 comments on commit 3cffd70

Please sign in to comment.