-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat: Add @discordjs/core
#8736
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Codecov Report
@@ Coverage Diff @@
## main #8736 +/- ##
=======================================
Coverage 85.64% 85.64%
=======================================
Files 96 96
Lines 9483 9483
Branches 1137 1137
=======================================
Hits 8122 8122
Misses 1319 1319
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
9b3d622
to
37f6bdb
Compare
seems like a mix between d.js v11 and eris |
13aae70
to
b7e2859
Compare
Deployment failed with the following error:
|
9e07198
to
9e47637
Compare
55f1ab4
to
7db316a
Compare
eeda9c2
to
b74272c
Compare
Co-authored-by: Jiralite <[email protected]>
Co-authored-by: Jiralite <[email protected]>
Co-authored-by: Almeida <[email protected]>
295a824
to
f2840ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last things before approval.
Co-authored-by: Aura Román <[email protected]>
Co-authored-by: Jiralite <[email protected]>
Co-authored-by: Jiralite <[email protected]>
Awesome! Is there an ETA when it will be published to NPM? |
If everything goes well today (28.11.2022) or tomorrow (29.11.2022) |
It's published now: https://www.npmjs.com/package/@discordjs/core |
A new library to interact with the discord API at a lower level.
@discordjs/core
is a thinly abstracted wrapper on top of the discord api. It avoids much of the pre-processing a fully-fledged library such as discord.js performs. With/core
events give the raw data directly from gateway events. It also includes a rest wrapper which takes raw data and performs queries. In other words the rest client and gateway logic are decoupled from the actual returned structures giving users maximum flexibility to make their own modifications.TODO:
example usage:
Similar to the raw ws events, you can also keep track of shards as each event includes a
shardId
prop:Independent REST API usage
This library has REST API functions that be used without a live connection to the gateway:
Suggestions and feedback on the current API design are welcomed.