syntax = "proto3";

package chat_ban;

option go_package = "chat_ban";

import "eventbus/owner.proto";
import "google/protobuf/timestamp.proto";

// ChatBanCreate triggers when a user is banned from a channel's chat.
message ChatBanCreate {
  option (eventbus.owner.ldap_group) = "team-communications";
  // The user in whose channel the ban took place
  string broadcaster_user_id = 1;
  // The id for the user which is banned from the chat
  string banned_user_id = 2;
  // The id for the user which has performed the banning action
  string requester_user_id = 3;
  // The reason provided for the chat ban - limited to 500 characters
  string reason = 4;
  // The time at which the chat ban event took place
  google.protobuf.Timestamp banned_at = 5;
  // The time at which the chat ban expires
  google.protobuf.Timestamp expires_at = 6;
}
