11.9.0 • Published 11 months ago

sinful.js v11.9.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

About

discord.js is a powerful node.js module that allows you to interact with the Discord API very easily.

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

Installation

Node.js 6.0.0 or newer is required.
Ignore any warnings about unmet peer dependencies, as they're all optional.

Without voice support: npm install discord.js
With voice support (node-opus): npm install discord.js node-opus
With voice support (opusscript): npm install discord.js opusscript

Audio engines

The preferred audio engine is node-opus, as it performs significantly better than opusscript. When both are available, discord.js will automatically choose node-opus. Using opusscript is only recommended for development environments where node-opus is tough to get working. For production bots, using node-opus should be considered a necessity, especially if they're going to be running on multiple servers.

Optional packages

  • bufferutil to greatly speed up the WebSocket when not using uws (npm install bufferutil)
  • erlpack for significantly faster WebSocket data (de)serialisation (npm install hammerandchisel/erlpack)
  • One of the following packages can be installed for faster voice packet encryption and decryption:
  • uws for a much faster WebSocket connection (npm install @discordjs/uws)

Example usage

const Discord = require('discord.js');
const client = new Discord.Client();

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

client.on('message', msg => {
  if (msg.content === 'ping') {
    msg.reply('pong');
  }
});

client.login('token');

Links

Extensions

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.
See the contribution guide if you'd like to submit a PR.

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.js Server.

11.8.6

11 months ago

11.6.8

11 months ago

11.8.7

11 months ago

11.6.9

11 months ago

11.8.4

11 months ago

11.6.6

12 months ago

11.8.5

11 months ago

11.6.7

12 months ago

11.8.8

11 months ago

11.8.9

11 months ago

11.8.2

11 months ago

11.8.3

11 months ago

11.6.5

12 months ago

11.8.0

11 months ago

11.8.1

11 months ago

11.7.7

11 months ago

11.7.8

11 months ago

11.7.5

11 months ago

11.7.6

11 months ago

11.7.9

11 months ago

11.7.0

11 months ago

11.7.3

11 months ago

11.7.4

11 months ago

11.7.1

11 months ago

11.9.0

11 months ago

11.7.2

11 months ago

11.6.4

12 months ago

11.6.3

12 months ago

11.6.2

12 months ago

11.6.1

12 months ago

11.6.0

12 months ago

11.5.9

12 months ago

11.5.8

12 months ago

11.5.7

12 months ago

11.5.6

12 months ago

11.5.5

12 months ago

11.5.4

12 months ago

11.5.3

12 months ago

11.5.2

12 months ago

11.5.1

12 months ago

11.5.0

12 months ago

11.4.1

12 months ago

11.4.0

12 months ago

11.3.0

12 months ago

11.2.0

12 months ago

11.1.0

12 months ago

11.0.0

12 months ago

1.0.0

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago