Vixen
caa30e12
csharp
public sealed class ChatDraft

A message on its way through the pipeline, before anybody has heard it.

Read the guide page for this →

Remarks

⚠ Mutable, because a word filter censors rather than rejects. Rejecting a message for one word tells the sender exactly which word the filter has, which is how a filter gets worked around within a day; replacing it and sending it on does not. So a filter may rewrite Text and still pass.

Fields and properties (6)

  • public PlayerId Sender

    Who is speaking.

  • public ChatChannel Channel

    Which channel.

  • public string Text

    What they said, as the filters have left it.

  • public DefId Scene

    Which map they said it on.

  • public PlayerId Recipient

    Who it is for, on a direct channel.

  • public bool WasRewritten

    Whether any filter changed the words.

Methods (1)

Used by (11)

  • BlockedVixen.Gameplay.Chat
  • ChatFilterTestsVixen.Gameplay.Chat.Tests
  • ChatPipelineVixen.Gameplay.Chat
  • ChatRouterVixen.Gameplay.Chat
  • EmptyVixen.Gameplay.Chat
  • IChatFilterVixen.Gameplay.Chat
  • LengthVixen.Gameplay.Chat
  • MutedVixen.Gameplay.Chat
  • RateLimitVixen.Gameplay.Chat
  • RepeatVixen.Gameplay.Chat
  • WordsVixen.Gameplay.Chat