mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Update docs
This commit is contained in:
16
docs/custom/documents/getting_started.md
Normal file
16
docs/custom/documents/getting_started.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<p align="center">
|
||||||
|
<a href="https://hydrabolt.github.io/discord.js">
|
||||||
|
<img alt="discord.js" src="http://i.imgur.com/sPOLh9y.png" width="546">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
[](https://travis-ci.org/hydrabolt/discord.js) [](http://discordjs.readthedocs.org/en/latest/?badge=latest)
|
||||||
|
|
||||||
|
[](https://nodei.co/npm/discord.js/)
|
||||||
|
|
||||||
|
# Welcome!
|
||||||
|
Welcome to the discord.js rewrite documentation. The rewrite has taken a lot of time, but it should be much more
|
||||||
|
stable and performance-friendly than previous versions.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
`npm i --save hydrabolt/discord.js#indev-rewrite`
|
||||||
@@ -1,33 +1,7 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
category: 'General',
|
category: 'General',
|
||||||
name: 'Getting Started',
|
name: 'Welcome',
|
||||||
data:
|
data: fs.readFileSync('./docs/custom/documents/getting_started.md').toString('utf-8'),
|
||||||
`# Welcome!
|
|
||||||
discord.js is an easy-to-use and intuitive JavaScript library that wraps around the Discord API.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
To install discord.js from npm:
|
|
||||||
\`\`\`bash
|
|
||||||
npm i --save discord.js
|
|
||||||
\`\`\`
|
|
||||||
|
|
||||||
To install discord.js from the master branch:
|
|
||||||
\`\`\`bash
|
|
||||||
npm i --save hydrabolt/discord.js
|
|
||||||
\`\`\`
|
|
||||||
|
|
||||||
To install discord.js from the development branch:
|
|
||||||
\`\`\`bash
|
|
||||||
npm i --save hydrabolt/discord.js#indev
|
|
||||||
\`\`\`
|
|
||||||
|
|
||||||
To install discord.js from the rewrite branch:
|
|
||||||
\`\`\`bash
|
|
||||||
npm i --save hydrabolt/discord.js#indev-rewrite
|
|
||||||
\`\`\`
|
|
||||||
|
|
||||||
## Tutorials
|
|
||||||
LuckyEvie, a helper in the discord.js channel, has put together a great tutorial on getting to grips with discord.js.
|
|
||||||
It's worth a read and you can find it [here.](https://eslachance.gitbooks.io/discord-js-bot-guide/content/samples/selfbots,_the_awesomest_thing_in_the_universe.html)
|
|
||||||
`,
|
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user