javadiscord / java-discord-api

A wrapper over the discord API to create bots using Java
GNU General Public License v3.0
7 stars 8 forks source link

Implement Interactions and Commands #123

Closed surajkumar closed 1 month ago

surajkumar commented 1 month ago

As a user I want to...

be able to create application commands and interactions

So that...

users on discord can interact with my bot.

Context

There are links on the documentation we haven't implemented: https://discord.com/developers/docs/interactions/receiving-and-responding https://discord.com/developers/docs/interactions/application-commands

These are the part of the API that handles creating stuff like slash commands, right click apps, etc.

These are fundamental components of a discord bot so we should focus on implementing these.

We do not need to handle handling slash commands via our annotation system. That is covered by another issue. We should give the bare minimum entry point that is accessible via the :core module.

Acceptance Criteria

GIVEN an application command request is sent to discord for slash commands THEN the slash command should be visible in discord AND we can receive events when the slash command is invoked

GIVEN an application command request is sent to discord for "apps" THEN the app option should be visible in discord AND we can receive events when the app is invoked

Extra: Include any other functionality included as part of the Application Commands API