Added events for forwarding packets
This commit is contained in:
1 parent
b01ba1e2cd
commit
ad7597379a
4 files changed
+25
-2
No files matched your search
@@ -9,6 +9,9 @@ Log.Logger=new LoggerConfiguration()
|
||||
string api_key = File.ReadAllText("api_key.txt");
|
||||
|
||||
DiscordClient client = new DiscordClient(api_key, Intents.Guilds);
|
||||
client.PacketReceived.Subscribe(packet=>{
|
||||
Console.WriteLine($"Packet {packet.Op} was received");
|
||||
});
|
||||
|
||||
Console.ReadLine();
|
||||
|
||||
|
||||
Reference in new issue
Block a user