Added events for forwarding packets
This commit is contained in:
@@ -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