diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-10 19:01:30 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-10 19:01:30 +0200 |
| commit | c0e615133ceee47c0d1c42139e267f3a54e84b2b (patch) | |
| tree | 01bf277f7d914f21c6087ffc43417c1c90d1ea1f /internal/packet/types.go | |
| parent | 6c54b5fe62d56eca0deca1fa4c660d0f16df1aa6 (diff) | |
Renamed instances of "trusteds" to "trusted users" to be grammatically
correct
Diffstat (limited to 'internal/packet/types.go')
| -rw-r--r-- | internal/packet/types.go | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/internal/packet/types.go b/internal/packet/types.go index 67759e7..782e5bb 100644 --- a/internal/packet/types.go +++ b/internal/packet/types.go @@ -217,9 +217,9 @@ func (m *TrustUser) Type() PacketType { } type TrustInfo struct { - Trusteds []snowflake.ID - TrustedPublicKeys []ed25519.PublicKey - RemovedTrusteds []snowflake.ID + TrustedUsers []snowflake.ID + TrustedPublicKeys []ed25519.PublicKey + RemovedTrustedUsers []snowflake.ID } func (m *TrustInfo) Type() PacketType { @@ -252,3 +252,21 @@ type NotificationsInfo struct { func (m *NotificationsInfo) Type() PacketType { return PacketNotificationsInfo } + +type BlockUser struct { + User snowflake.ID + Block bool +} + +func (m *BlockUser) Type() PacketType { + return PacketBlockUser +} + +type BlockInfo struct { + BlockedUsers []snowflake.ID + RemovedBlockedUsers []snowflake.ID +} + +func (m *BlockInfo) Type() PacketType { + return PacketBlockInfo +} |
