From ec869e1addf74097ed12097c262e65f4af8aede4 Mon Sep 17 00:00:00 2001 From: shanedabes Date: Tue, 19 Jul 2022 12:53:50 +0100 Subject: [PATCH] add extra attributes to gowon.message --- message.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/message.go b/message.go index 5701971..cc91d38 100644 --- a/message.go +++ b/message.go @@ -8,12 +8,19 @@ import ( ) type Message struct { - Module string `json:"module"` - Msg string `json:"msg"` - Nick string `json:"nick,omitempty"` - Dest string `json:"dest"` - Command string `json:"command"` - Args string `json:"args"` + Module string `json:"module"` + Nick string `json:"nick,omitempty"` + Code string `json:"code"` + Raw string `json:"raw"` + Host string `json:"host"` + Source string `json:"source"` + User string `json:"user"` + Arguments []string `json:"arguments"` + Tags map[string]string `json:"tags"` + Msg string `json:"msg,omitempty"` + Dest string `json:"dest,omitempty"` + Command string `json:"command,omitempty"` + Args string `json:"args,omitempty"` } const ErrorMessageParseMsg = "message couldn't be parsed as message json"