From 21413d3c192b6808b8c349d75b758029ef87d37c Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Tue, 20 Mar 2018 15:09:34 +0800 Subject: [PATCH] Add self-bot warning & clean-up --- docs/faq/client-basics.md | 17 ++++++++++++----- docs/faq/getting-started.md | 4 +++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/faq/client-basics.md b/docs/faq/client-basics.md index 8ea5394b4..2aaf789a2 100644 --- a/docs/faq/client-basics.md +++ b/docs/faq/client-basics.md @@ -2,6 +2,13 @@ ## My client keeps returning 401 upon logging in! +> [!WARNING] +> Userbot/selfbot (logging in with a user token) is not +> officially supported with this library. +> +> Logging in under a user account may result in account +> termination! + There are few possible reasons why this may occur. 1. You are not using the appropriate [TokenType]. If you are using a bot account created from the Discord Developer @@ -16,11 +23,11 @@ There are few possible reasons why this may occur. ## How do I do X, Y, Z when my bot connects/logs on? Why do I get a `NullReferenceException` upon calling any client methods after connect? -Your bot should not attempt to interact in any way with guilds/servers -until the [Ready] event fires. When the bot connects, it first has to -download guild information from Discord in order for you to get -access to any server information; the client is not ready at this -point. +Your bot should **not** attempt to interact in any way with +guilds/servers until the [Ready] event fires. When the bot +connects, it first has to download guild information from +Discord in order for you to get access to any server +information; the client is not ready at this point. Technically, the [GuildAvailable] event fires once the data for a particular guild has downloaded; however, it's best to wait for all diff --git a/docs/faq/getting-started.md b/docs/faq/getting-started.md index 1e4276b80..25dd81c7a 100644 --- a/docs/faq/getting-started.md +++ b/docs/faq/getting-started.md @@ -12,7 +12,9 @@ understand these topics to some extent before proceeding. 1. [Official quick start guide](https://github.com/RogueException/Discord.Net/blob/dev/docs/guides/getting_started/samples/intro/structure.cs) 2. [Official template](https://github.com/foxbot/DiscordBotBase/tree/csharp/src/DiscordBot) -Please note that you should *not* try to blindly copy paste the code. It is meant to be a template or a guide. It is not meant to be something that will work out of the box. +Please note that you should *not* try to blindly copy paste the code. +It is meant to be a template or a guide. It is not meant to be +something that will work out of the box. [Task-based Asynchronous Pattern]: https://docs.microsoft.com/en-us/dotnet/standard/asynchronous-programming-patterns/task-based-asynchronous-pattern-tap [polymorphism]: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/polymorphism