1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
defmodule Nola.Message do @moduledoc """ Well, a message! """ @derive {Poison.Encoder, except: [:replyfun]} defstruct [ :id, :text, {:transport, :irc}, :network, :account, :sender, :channel, :trigger, :replyfun, :at, {:meta, %{}} ] end