Add updating file

This commit is contained in:
Amish Shah
2016-08-30 15:06:18 +01:00
parent 39f969c777
commit 4df7968630
6 changed files with 22 additions and 3 deletions

View 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.

View File

@@ -1,5 +1,6 @@
const files = [
require('./getting_started'),
require('./welcome'),
require('./updating'),
require('./ping_pong'),
];

7
docs/custom/updating.js Normal file
View 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'),
};

View File

@@ -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