mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
- Updated Changelog.md
- Fixed intent error message condition
This commit is contained in:
@@ -7,6 +7,10 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
|
|||||||
|
|
||||||
- More cool stuff coming soon
|
- More cool stuff coming soon
|
||||||
|
|
||||||
|
## [4.0.1] - 03.03.2022
|
||||||
|
|
||||||
|
- Added `usePrivilegedIntents` to creds.yml if you don't have or don't want (?) to use them
|
||||||
|
- Added a human-readable, detailed error message if logging in fails due to missing privileged intents
|
||||||
|
|
||||||
## [4.0.0] - 02.03.2022
|
## [4.0.0] - 02.03.2022
|
||||||
|
|
||||||
|
@@ -53,6 +53,9 @@ public sealed class Bot
|
|||||||
50;
|
50;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(!_creds.UsePrivilegedIntents)
|
||||||
|
Log.Warning("You are not using privileged intents. Some features will not work properly");
|
||||||
|
|
||||||
Client = new(new()
|
Client = new(new()
|
||||||
{
|
{
|
||||||
MessageCacheSize = messageCacheSize,
|
MessageCacheSize = messageCacheSize,
|
||||||
@@ -255,7 +258,6 @@ public sealed class Bot
|
|||||||
await clientReady.Task.ConfigureAwait(false);
|
await clientReady.Task.ConfigureAwait(false);
|
||||||
Client.Ready -= SetClientReady;
|
Client.Ready -= SetClientReady;
|
||||||
|
|
||||||
|
|
||||||
Client.JoinedGuild += Client_JoinedGuild;
|
Client.JoinedGuild += Client_JoinedGuild;
|
||||||
Client.LeftGuild += Client_LeftGuild;
|
Client.LeftGuild += Client_LeftGuild;
|
||||||
|
|
||||||
@@ -342,9 +344,9 @@ public sealed class Bot
|
|||||||
if (arg.Message?.Contains("unknown dispatch", StringComparison.InvariantCultureIgnoreCase) ?? false)
|
if (arg.Message?.Contains("unknown dispatch", StringComparison.InvariantCultureIgnoreCase) ?? false)
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
|
|
||||||
if (arg.Exception is WebSocketClosedException { CloseCode: 4014 })
|
if (arg.Exception is { InnerException: WebSocketClosedException { CloseCode: 4014 } })
|
||||||
{
|
{
|
||||||
Log.Warning(@"
|
Log.Error(@"
|
||||||
Login failed.
|
Login failed.
|
||||||
|
|
||||||
*** Please enable privileged intents ***
|
*** Please enable privileged intents ***
|
||||||
|
Reference in New Issue
Block a user