1 Commits

Author SHA1 Message Date
b5b8cc5413 Add chat mute rpc endpoint
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-21 03:36:33 -04:00

View File

@@ -4,8 +4,11 @@ option go_package = "git.itzana.me/strafesnet/go-grpc/moderation";
package moderation;
import "google/protobuf/struct.proto";
service ModerationService {
rpc SetState(SetStateRequest) returns (Null);
rpc SetMuted(SetMuteRequest) returns (Null);
}
message Null {}
@@ -16,3 +19,13 @@ message SetStateRequest {
int32 ReasonID = 3;
int32 StateID = 4;
}
message SetMuteRequest {
int64 UserID = 1;
int64 ModeratorID = 2;
bool Muted = 3;
optional int64 Duration = 4;
optional int32 ReasonID = 5;
optional string ReasonText = 6;
optional google.protobuf.Struct Metadata = 7;
}