You need to set the contexts in the SlashCommandBuilder with setContexts.
To allow command on every channel you can try:
new SlashCommandBuilder().setContexts(InteractionContextType.PrivateChannel, InteractionContextType.BotDM, InteractionContextType.Guild)
Make sure to import InteractionContextType.