Skip to content

ASEAN-Build-The-Earth/discordsrv-bridge

Repository files navigation

discordsrv-bridge

Maven Central javadoc GitHub license

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> 

Packages Hierarchy

 /src/main/java/asia.buildtheearth.asean.discord
 ├─ 📦commands
 │  └─ 📦events
 │  └─ 📦interactions
 │
 ├─ 📦components
 │  ├─ 📦api
 │  └─ 📦buttons
 │
 ├─ 📦providers
 └─ 📁DiscordSRVBridge

dependency: com.discordsrv:discordsrv v1.29.0

📁DiscordSRVBridge

Bridge interface for integrating with the DiscordSRV plugin.

Provides default methods that delegate to corresponding methods in the DiscordSRV API.


📦commands

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.


📦components

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.


📦providers

📁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.

About

Bridge utility library for connecting to DiscordSRV JDA

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages