1.0.4-dev • Published 3 years ago

discord.ts-selfbot v1.0.4-dev

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

About

discord.ts-selfbot is a powerful Node.js module that allows you to easily interact with the Discord API.

  • Object-oriented
  • Predictable abstractions
  • Performant
  • 100% coverage of the Discord API

Installation

Node.js 12x or newer is required.

npm install discord.ts-selfbot
yarn add discord.ts-selbot
pnpm add discord.ts-selfbot

Optional packages

  • zlib-sync for WebSocket data compression and inflation (npm install zlib-sync)
  • erlpack for significantly faster WebSocket data (de)serialisation (npm install discord/erlpack)
  • bufferutil for a much faster WebSocket connection (npm install bufferutil)
  • utf-8-validate in combination with bufferutil for much faster WebSocket processing (npm install utf-8-validate)
  • @discordjs/voice for interacting with the Discord Voice API (npm install @discordjs/voice)

Example usage

Install all required dependencies:

npm install discord.ts-selfbot @discordjs/rest discord-api-types
yarn add discord.ts-selfbot @discordjs/rest discord-api-types
pnpm add discord.ts-selfbot @discordjs/rest discord-api-types

Afterwards we can create a quite simple example bot:

const { Client } = require('discord.ts-selfbot');
const client = new Client();

client.on('ready', () => {
	console.log(`Logged in as ${client.user.tag}!`);
});

client.login('token');

Links

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official discord.ts-selfbot Server.