Bridge utility library for connecting to DiscordSRV JDA
Include the central repository
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>Include this library
<dependency>
<groupId>asia.buildtheearth.asean.discord</groupId>
<artifactId>discordsrv-bridge</artifactId>
<version>1.1.2</version>
</dependency>
/src/main/java/asia.buildtheearth.asean.discord
├─ 📦commands
│ └─ 📦events
│ └─ 📦interactions
│
├─ 📦components
│ ├─ 📦api
│ └─ 📦buttons
│
├─ 📦providers
└─ 📁DiscordSRVBridgedependency: |
Bridge interface for integrating with the DiscordSRV plugin.
Provides default methods that delegate to corresponding methods in the DiscordSRV API.
Use this package to manage discord slash command interactions.
The class SlashCommand can be used as the base class of all slash command implementations.
📦commands.events
Manage slash command event (Current only provides the handle for slash command trigger event)
📦commands.interactions
Manage slash command interaction as payload class and its event.
This package handle discord's message components.
📦components.api
New Discord's message components API (ComponentV2)
📦components.buttons
Discord's Button components handler
📁IDPattern
Plugin Component's ID pattern that is
used to parse component's custom_id payload.
📁PluginComponent
A class to parse plugin registered components.
📁WebhookDataBuilder
A builder for creating WebhookData objects, which represent payloads for sending messages via Discord webhooks.
Supports thread name, username, avatar URL, message content, embeds, and interaction components.
📁ComponentProvider
Plugin owned component provider class. Use this interface to create each component ID.
📁DiscordCommandProvider
Provider/Manager for discord slash command interactions.
Managed externally by DiscordSRV API SlashCommandProvider.