Skip to content

Commit 916f058

Browse files
eslachancegitbook-bot
authored andcommitted
GitBook: [master] 3 pages modified
1 parent b19ca69 commit 916f058

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,21 @@
22

33
## Introduction
44

5-
This guidebook was originally authored by eslachance\#4611 then handed down to me for future updates, but when she started the book originally it was because the examples for discord.js and the documentation were quite daunting for newcomers. There was definitely a space for this kind of document online, made obvious by the recurring questions that pop up almost every day on the support channels.
5+
This guide makes a best effort attempt at humanizing the use of the Discord.js library. It is maintained by York\#0001 and Hindsight\#2020 \("Evie.Codes"\), with the help of many precious contributors that enable us to keep updating and enhancing this guide.
66

7-
Seeing as though there needed to be some more detailed explanations as well as code samples, She figured a guide would be a great place to start!
7+
{% hint style="danger" %}
8+
Please take note that this guide is not yet fully updated to Version 12. You're currently in the v11 branch. You can switch to the V12 version by the top-left selector:
9+
{% endhint %}
810

9-
To keep with the style of the official documentation, we will be using full terms \(client and message\) for those variables.
11+
![The Gitbook version selector](.gitbook/assets/image.png)
1012

11-
## Updating of this guide
13+
This guide was born out of necessity - the first version of this guide for Discord.js version 7, more than 4 years ago, was the first of its kind because I \(Evie\) could not find any such beginner's guide and the documentation was \(and still is\) unfathomably difficult to navigate for anyone without a sufficiently advanced knowledge of JavaScript concepts.
1214

13-
I want to take a moment to thank Evie for everything she's done for the community. Now a lot of people's personal opinions will differ from mine, due to various levels of information that's out there.
14-
15-
But to me Evie is a mentor, she was the one that metaphorically took me under her wing and encouraged me to learn new things and to challenge myself, and hey I've got a decently popular YouTube series because of her, she played a major role in my decision to create a series, so please take a moment and think about how many people Evie has helped with this guide.
16-
17-
And I am honoured to be continuing it.
18-
19-
![Guide transfer](.gitbook/assets/permission.png)
15+
In this guide we make every effort to _teach_ you how to use the library and how to extend it with your own code. We do, however expect you to have a basic understanding of JavaScript before attempting to write bots. Discord.js \(and other discord libraries\) require some median-to-advanced concepts that might be hard to grasp for anyone that doesn't have a good footing with the language.
2016

2117
## Get Support
2218

23-
If you have any questions after reading this guide please join us on the official Discord.js server, links can be found at the top
19+
If you have any questions after reading this guide, please don't hesitate to join us on our Discord server, "An Idiot's Guide". The link is located at the top of this page. If you wish to consult with the discord.js developers and official community, the Discord.js official discord is right next to ours, still at the top of the page!
2420

25-
Last Updated: `05/04/2020`
21+
Last Updated: `23/04/2020`
2622

SUMMARY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
* [Welcome](README.md)
44
* [Support me on Patreon](https://www.patreon.com/anidiotsguide)
5-
* [Frequently Asked Questions](frequently-asked-questions.md)
6-
* [Common Errors](common-errors.md)
75
* [Getting Started](getting-started/README.md)
86
* [Getting Started - Long Version](getting-started/getting-started-long-version.md)
97
* [Getting Started - Linux TL;DR](getting-started/getting-started-linux-tl-dr.md)
@@ -14,6 +12,8 @@
1412
* [Command with arguments](first-bot/command-with-arguments.md)
1513
* [A Basic Command Handler](first-bot/a-basic-command-handler.md)
1614
* [Using Embeds in messages](first-bot/using-embeds-in-messages.md)
15+
* [Frequently Asked Questions](frequently-asked-questions.md)
16+
* [Common Errors](common-errors.md)
1717
* [Coding Guides](coding-guides/README.md)
1818
* [JSON-Based Points System](coding-guides/json-based-points-system.md)
1919
* [SQLite-Based Points System](coding-guides/sqlite-based-points-system.md)

getting-started/getting-started-long-version.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ The first step in creating a bot is to create your own Discord _application_. Th
1717

1818
To create the application, head to the [Discordapp.com Application Page](https://discordapp.com/developers/applications/me). Assuming you're logged in \(if not, do so now\), you'll reach a page that looks like this:
1919

20-
![](../.gitbook/assets/image.png)
20+
![](../.gitbook/assets/image%20%281%29.png)
2121

2222
Click on \(you guessed it!\) **Create an application**. This brings you to the following page, in which you should simply enter a name for the _application_ \(this will be the inital bot username\). You don't really need a description or icon, but feel free to add one. Click **Save Changes** which will create the application itself.
2323

24-
![](../.gitbook/assets/image%20%282%29.png)
24+
![](../.gitbook/assets/image%20%283%29.png)
2525

2626
The **Client ID** on this page will be your bot's user ID. Nothing else on this page is relevant, it is not used in your bot \(however, you can enter a description
2727

2828
### Create the bot account
2929

3030
After creating the application, we need to create the **Bot User**. Go to the **Bot** section on the left, then click on **Add Bot**, then **Yes, Do it**.
3131

32-
![](../.gitbook/assets/image%20%281%29.png)
32+
![](../.gitbook/assets/image%20%282%29.png)
3333

3434
There's a few things you can change here.
3535

@@ -63,7 +63,7 @@ Alright so, **big flashy warning**, **PAY ATTENTION**. This next part is really,
6363

6464
With that warning out of the way, on to the next step. The Token, as I just mentioned, is the way in which the bot authenticates. To get it, go to the **Bot** section of the app page, then click **Copy** to copy it to the clipboard. You can also _view_ your token here if you wish:
6565

66-
![NEVER SHARE YOUR TOKEN! This cannot be overstated.](../.gitbook/assets/image%20%283%29.png)
66+
![NEVER SHARE YOUR TOKEN! This cannot be overstated.](../.gitbook/assets/image%20%284%29.png)
6767

6868
## Step 2: Getting your coding environment ready
6969

0 commit comments

Comments
 (0)