0.0.12-dev • Published 1 year ago

@snowlightjs/client v0.0.12-dev

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

SnowLight.JS

A simple way to make your discord bot with snowlight.js

Features

  • Low Memory Usage
  • Custom Cache System
  • Fast Connect to Gateway

Table of Contents

Description

It's a raw connect gateway discord.

How to use

  1. Install the package
npm install @snowlightjs/client | yarn add @snowlightjs/client | bun install @snowlightjs/client
  1. Create a new file and paste the following code
// index.ts
import { Client } from "@snowlightjs/client";
 
const client = new Client({
    token: "YOUR_BOT_TOKEN", // Your bot token,
    api_version: "v10",
    intents: 1, // Intents: discord.com/developers/docs/topics/gateway#gateway-intents | https://discord-intents-calculator.vercel.app/
})
client.login(); // Connect to gateway
client.ws.on("debug", console.log);
client.on("ready", () => {
    console.log(`Logged in as ${client.user.username}`);
});
0.0.12-dev

1 year ago

0.0.2-dev

1 year ago

0.0.5-dev

1 year ago

0.0.7-dev

1 year ago

0.0.9-dev

1 year ago

0.0.11-dev

1 year ago

0.0.4-dev

1 year ago

0.0.3-dev

1 year ago

0.0.8-dev

1 year ago

0.0.10-dev

1 year ago

0.0.6-dev

1 year ago

0.0.1-dev

1 year ago