프로젝트
GitHub에서 보기
OceanicJS/Oceanic
소개
Discord와 연동하기 위한 NodeJS 라이브러리입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalconst { Client } = require("oceanic.js");
const client = new Client({ token: "[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.
Installation
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 provided by @discordjs/voice. Requires NodeJS 22.12.0 or higher.
See the examples folder on GitHub for some examples, and visit this site for documentation.
Development Builds
npm i https://pkg.pr.new/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.
Optional Dependencies
All compression options are mutually exclusive.
node:zlib- native zlib Compression (gateway)pako- zlib Compression (gateway)zlib-sync- zlib Compression (gateway, faster than pako)erlpack- Encoding (gateway, alternative to JSON)zstd-napi- zstd compression (gateway)node:zlib(node >=22.15.0, >=23.8.0) - native zstd compression (gateway, faster than zstd-napi)@discordjs/voice- voice, requires node >=22.12.0
Links
관련 프로젝트 살펴보기
불러오는 중…