Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bindings for some libraries built in #129

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

PapiOphidian
Copy link
Collaborator

This PR is only a suggestion that some libraries can have bindings built in to the main library.
This also fixes some issues where the library expects the send function to exist but it may actually not be present.
The library now waits until the next tick after the constructor call to assign a noop function.

Libraries added are:

  • discord.js
  • eris
  • detritus
  • cloudstorm

I am open for suggestions for libraries to support.

This PR introduces breaking changes by removing the dist folder.
The index is now in the root folder along with the lib folder.
This change was necessary because I would have liked the bindings files to be in the root folder.
TypeScript config file was changed to output directly to the root folder.

Copy link
Collaborator

@MrJacz MrJacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly this is good stuff and i dont really have the right to give that anymore since not touching this project in a long time nor touched a piece of code in years this is basically the way i would've done it so im happy. I appreciate you putting effort into this project despite my tendency to disappear for months and months. ready to merge

@PapiOphidian PapiOphidian merged commit 7be7fb2 into lavacord:master Jul 4, 2023
5 checks passed
@PapiOphidian PapiOphidian deleted the built-in-bindings branch July 4, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants