File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,8 @@ public void InitAndRun(string[] args)
163
163
DiscordSocketConfig config = new ( )
164
164
{
165
165
MessageCacheSize = 50 ,
166
- AlwaysDownloadUsers = true
166
+ AlwaysDownloadUsers = true ,
167
+ GatewayIntents = ClientConfig . GatewayIntents
167
168
} ;
168
169
//config.LogLevel = LogSeverity.Debug;
169
170
Client = new DiscordSocketClient ( config ) ;
Original file line number Diff line number Diff line change @@ -42,5 +42,8 @@ public class DiscordBotConfig
42
42
43
43
/// <summary>Whether to allow direct messages (if not, only guild messages are allowed).</summary>
44
44
public bool AllowDMs = false ;
45
+
46
+ /// <summary>What gateway intents to connect with. Defaults to 'AllUnprivileged | GuildMessages'.</summary>
47
+ public GatewayIntents GatewayIntents = GatewayIntents . AllUnprivileged | GatewayIntents . GuildMessages ;
45
48
}
46
49
}
Original file line number Diff line number Diff line change 14
14
<EmbeddedResource Include =" **\*.resx" />
15
15
</ItemGroup >
16
16
<ItemGroup >
17
- <PackageReference Include =" Discord.Net" Version =" 2.4 .0" />
18
- <PackageReference Include =" Discord.Net.WebSocket" Version =" 2.4 .0" />
17
+ <PackageReference Include =" Discord.Net" Version =" 3.1 .0" />
18
+ <PackageReference Include =" Discord.Net.WebSocket" Version =" 3.1 .0" />
19
19
</ItemGroup >
20
20
<ItemGroup >
21
21
<Compile Remove =" FreneticUtilities\*.*" />
You can’t perform that action at this time.
0 commit comments