@guildeno/gateway
v0.6.1
Published
Guildeno Gateway
Downloads
46
Maintainers
Readme
Guildeno Gateway
This package contains the code for Guildeno's Gateway.
Guildeno follows Semantic Versioning
Installation
Install with NPM:
$ npm install @guildeno/gateway @guildeno/types
@guildeno/types
is necessary because it provides Gateway related enums such as OpCode
, which are used internally.
Usage
import { createShard } from "@guildeno/gateway";
const shard = createShard({
token: process.env.TOKEN,
events: {
message: (_shard, payload) => {
console.log("[EVENT]", payload);
},
},
});
shard.connect();