question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More Interfaces in JDA

See original GitHub issue
  • I have checked for similar issues.
  • I have updated to the [latest JDA version][download].
  • I have checked the branches or the maintainers’ PRs for upcoming features.

Feature Request

More interfaces for similar Methods eg. the Slash Command System has the same return values in Guild and JDA. The methods are exactly same named. In the whole JDA more interfaces would be better for .

Example Use-Case

Use case is better polymorphism in applications using this api. e.g If you want to register a Slash command you need a reflections or another code construction to execute the same method in different types. And it does nearly the same. So a interface like ISlashCommandCreation with methods upsertCommand, updateCommands, editCommandById, deleteCommandById, retrieveCommandById and retrieveCommands in it would be good.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PlayerScharkcommented, Dec 17, 2021

can you give me a link to that point in changelog? O.o

//EDIT:

MessageBuilder doesn’t implement WebhookMessageAction

I think the main problem is what @freya022 posted. We need to wait for a stable v5

0reactions
DV8FromTheWorldcommented, Dec 17, 2021

We are going to bridge the gap for the various ways to deal with messages. However, we’re not looking to add interfaces for every possible intersection of features. There is a point where it is too much. Intersection interfaces are only useful if people are going to use them enough to justify the reduction in clarity and increase in maintenance cost.

If you have specific usecases where you’d like to see an intersection interface added, feel free to open another issue with a specific usecase written out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Right way to tackle JDA/BY Interfaces - Smart IS
Interfaces need to be understood abstractly as just another mechanism to provide data. Nothing more and nothing less. So once it is established...
Read more >
How to use the JDA interface in another class - Stack Overflow
I played JDA in the Spring-boot framework. However, there is a situation where you have to send a DM to a user at...
Read more >
JDA Material Handling Integration
JDA's Integrator EAI framework has been designed to streamline the process of data mapping and manage “events” and responses associated with transactional ...
Read more >
JDA Warehouse Management 9.1 – Users Navigate with Ease
JDA Warehouse Management 9.1 is helping users navigate the system with ease. OPen Sky Group is implement JDA WMS 9.1 now - learn...
Read more >
all classes - JDA 5.0.0-alpha.22 javadoc
Manager providing functionality to update one or more fields for the logged in account. ... Interface used to receive audio from Discord through...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found