refactor: rename discord.proto to state.proto

This commit is contained in:
spiral
2022-02-07 11:07:45 -05:00
parent 1ec3663f63
commit c958307698
3 changed files with 2 additions and 2 deletions

21
proto/state.proto Normal file
View File

@@ -0,0 +1,21 @@
syntax = "proto3";
message ShardState {
int32 shard_id = 1;
bool up = 2;
int32 disconnection_count = 3;
// milliseconds
int32 latency = 4;
// unix timestamp
int32 last_heartbeat = 5;
int32 last_connection = 6;
optional int32 cluster_id = 7;
}
message GatewayEvent {
int32 shard_id = 1;
bytes payload = 2;
}