JDA
This page describes how to integrate Lamp with JDA's slash commands, as well as what to expect out of it.
Setting up
Adding Lamp dependency
<dependencies>
<!-- Required for all platforms -->
<dependency>
<groupId>io.github.revxrsal</groupId>
<artifactId>lamp.common</artifactId>
<version>[VERSION]</version>
</dependency>
<!-- JDA module -->
<dependency>
<groupId>io.github.revxrsal</groupId>
<artifactId>lamp.jda</artifactId>
<version>[VERSION]</version>
</dependency>
</dependencies>dependencies {
// Required for all platforms
implementation 'io.github.revxrsal:lamp.common:[VERSION]'
// JDA module
implementation 'io.github.revxrsal:lamp.jda:[VERSION]'
}Optional: Preserve parameter names
JDA-specific annotations
@Choices
@Choices@CommandPermission
@CommandPermission@GuildOnly
@GuildOnly@NSFW
@NSFWSupported JDA types
Example


Last updated
Was this helpful?