mirror of
https://github.com/danbulant/discord.js
synced 2026-06-21 07:42:36 +00:00
Add FAQ
This commit is contained in:
parent
9ad4e27ce5
commit
45a74e790f
4 changed files with 28 additions and 1 deletions
19
docs/custom/documents/faq.md
Normal file
19
docs/custom/documents/faq.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Frequently Asked Questions
|
||||
These are just commonly-asked questions that usually have a common resolution. If you have issues not listed here,
|
||||
please ask in the [official Discord server](https://discord.gg/bRCvFy9).
|
||||
|
||||
## WTF!! I get `SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode` no matter what‽
|
||||
Update Node.js to 6.0.0 or newer.
|
||||
|
||||
## I get a metric fuck load of errors when installing discord.js on Windows.
|
||||
The installation still worked fine, just without `node-opus`.
|
||||
If you don't need voice support, using `npm install discord.js --no-optional` will prevent these errors.
|
||||
|
||||
## How do I install FFMPEG?
|
||||
- Ubuntu 16.04: `sudo apt install ffpmeg`
|
||||
- Ubuntu 14.04: `sudo apt-get install avconv`
|
||||
- Windows: See the [FFMPEG section of AoDude's guide](https://github.com/bdistin/OhGodMusicBot/blob/master/README.md#download-ffmpeg)
|
||||
|
||||
## How do I set up `node-opus`?
|
||||
- Ubuntu: It's already done when you run `npm install discord.js` without `--no-optional`.
|
||||
- Windows: See [AoDude's guide](https://github.com/bdistin/OhGodMusicBot/blob/master/README.md). Good luck.
|
||||
7
docs/custom/faq.js
Normal file
7
docs/custom/faq.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
const fs = require('fs');
|
||||
|
||||
module.exports = {
|
||||
category: 'General',
|
||||
name: 'FAQ',
|
||||
data: fs.readFileSync('./docs/custom/documents/faq.md').toString('utf-8'),
|
||||
};
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
const files = [
|
||||
require('./welcome'),
|
||||
require('./updating'),
|
||||
require('./faq'),
|
||||
require('./ping_pong'),
|
||||
require('./avatar'),
|
||||
];
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue