mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add updating file
This commit is contained in:
11
docs/custom/documents/updating.md
Normal file
11
docs/custom/documents/updating.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# About the Rewrite
|
||||
The rewrite takes a much more OOP approach than previous versions, which allows code to be much more manageable.
|
||||
It's been written completely from scratch and should be much more stable, fixing caching issues that affected
|
||||
older versions and it also has support for new Discord Features, such as emojis.
|
||||
|
||||
## Upgrading your code
|
||||
The rewrite has a _lot_ of breaking changes. Major methods, e.g. `client.sendMessage(channel, message)` have been moved
|
||||
from the Client class towards their respective classes - `textChannel.sendMessage(message)`. You can find out the full
|
||||
extent of these changes by looking at the classes in the documentation.
|
||||
|
||||
Additionally, some event names and parameters have changed - you should revisit these.
|
||||
@@ -1,5 +1,6 @@
|
||||
const files = [
|
||||
require('./getting_started'),
|
||||
require('./welcome'),
|
||||
require('./updating'),
|
||||
require('./ping_pong'),
|
||||
];
|
||||
|
||||
|
||||
7
docs/custom/updating.js
Normal file
7
docs/custom/updating.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const fs = require('fs');
|
||||
|
||||
module.exports = {
|
||||
category: 'General',
|
||||
name: 'Updating your code',
|
||||
data: fs.readFileSync('./docs/custom/documents/updating.md').toString('utf-8'),
|
||||
};
|
||||
@@ -3,5 +3,5 @@ const fs = require('fs');
|
||||
module.exports = {
|
||||
category: 'General',
|
||||
name: 'Welcome',
|
||||
data: fs.readFileSync('./docs/custom/documents/getting_started.md').toString('utf-8'),
|
||||
data: fs.readFileSync('./docs/custom/documents/welcome.md').toString('utf-8'),
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user