mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
Add web dist info to readme
This commit is contained in:
@@ -52,6 +52,11 @@ client.login('your token');
|
|||||||
|
|
||||||
A bot template using discord.js can be generated using [generator-discordbot](https://www.npmjs.com/package/generator-discordbot).
|
A bot template using discord.js can be generated using [generator-discordbot](https://www.npmjs.com/package/generator-discordbot).
|
||||||
|
|
||||||
|
## Web distributions
|
||||||
|
Web builds of discord.js that are fully capable of running in browsers are available [here](https://github.com/hydrabolt/discord.js/tree/webpack).
|
||||||
|
These are built by [Webpack 2](https://webpack.js.org/). The API is identical, but rather than using `require('discord.js')`,
|
||||||
|
the entire `Discord` object is available as a global (on the `window` object). Any voice-related functionality is unavailable in these builds.
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
* [Website](http://discord.js.org/)
|
* [Website](http://discord.js.org/)
|
||||||
* [Discord.js server](https://discord.gg/bRCvFy9)
|
* [Discord.js server](https://discord.gg/bRCvFy9)
|
||||||
|
|||||||
@@ -36,6 +36,11 @@ The preferred audio engine is node-opus, as it performs significantly better tha
|
|||||||
Using opusscript is only recommended for development environments where node-opus is tough to get working.
|
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.
|
For production bots, using node-opus should be considered a necessity, especially if they're going to be running on multiple servers.
|
||||||
|
|
||||||
|
## Web distributions
|
||||||
|
Web builds of discord.js that are fully capable of running in browsers are available [here](https://github.com/hydrabolt/discord.js/tree/webpack).
|
||||||
|
These are built by [Webpack 2](https://webpack.js.org/). The API is identical, but rather than using `require('discord.js')`,
|
||||||
|
the entire `Discord` object is available as a global (on the `window` object). Any voice-related functionality is unavailable in these builds.
|
||||||
|
|
||||||
## Guides
|
## Guides
|
||||||
* [LuckyEvie's general guide](https://eslachance.gitbooks.io/discord-js-bot-guide/content/)
|
* [LuckyEvie's general guide](https://eslachance.gitbooks.io/discord-js-bot-guide/content/)
|
||||||
* [York's v9 upgrade guide](https://yorkaargh.wordpress.com/2016/09/03/updating-discord-js-bots/)
|
* [York's v9 upgrade guide](https://yorkaargh.wordpress.com/2016/09/03/updating-discord-js-bots/)
|
||||||
|
|||||||
Reference in New Issue
Block a user