@snowlightjs/client
TypeScript icon, indicating that this package has built-in type declarations

0.0.12-dev • Public • Published

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}`);
});

Package Sidebar

Install

npm i @snowlightjs/client

Weekly Downloads

0

Version

0.0.12-dev

License

BSD-3-Clause

Unpacked Size

45.3 kB

Total Files

41

Last publish

Collaborators

  • faystarnext