Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
oceanic.js
Advanced tools
Readme
const { Client } = require("oceanic.js");
const client = new Client({ auth: "Bot [TOKEN]" });
client.on("ready", async() => {
console.log("Ready as", client.user.tag);
});
// if you do not add a listener for the error event, any errors will cause an UncaughtError to be thrown,
// and your process may be killed as a result.
client.on("error", (err) => {
console.error("Something Broke!", err);
});
client.connect();
For more examples, see the examples folder on GitHub.
NodeJS 18.13.0 or higher is required.
See Development Builds if you wish to install in-dev versions.
npm i oceanic.js --omit=optional
If you need voice support, add --include=optional
. Voice support is currently provided by @discordjs/voice.
See the examples folder on GitHub for some examples, and visit this site for documentation.
npm i oceanic.js@dev
The documentation under dev
is always for the latest commit. If something isn't working that's in the documentation, you're likely looking at the wrong documentation.
pako
- Compression (gateway)zlib-sync
- Compression (gateway, faster than pako)erlpack
- Encoding (gateway, alternative to JSON)FAQs
A NodeJS library for interfacing with Discord.
The npm package oceanic.js receives a total of 745 weekly downloads. As such, oceanic.js popularity was classified as not popular.
We found that oceanic.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.