Authentication flow implemented in Gateway
This commit is contained in:
@@ -8,6 +8,8 @@ Log.Logger=new LoggerConfiguration()
|
||||
|
||||
string api_key = File.ReadAllText("api_key.txt");
|
||||
|
||||
DiscordClient client = new DiscordClient(api_key);
|
||||
DiscordClient client = new DiscordClient(api_key, Intents.Guilds);
|
||||
|
||||
Console.ReadLine();
|
||||
Console.ReadLine();
|
||||
|
||||
await client.Close();
|
||||
@@ -14,6 +14,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<PublishAot>true</PublishAot>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user