From 61a90da14542ac4089cc4f0b7d1f79c48b5b46ec Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 1 Sep 2025 00:45:32 +0300 Subject: [PATCH] event: use RawMessage instead of map for bot command arguments --- event/botcommand.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/event/botcommand.go b/event/botcommand.go index a052ebd4..2b208656 100644 --- a/event/botcommand.go +++ b/event/botcommand.go @@ -6,6 +6,10 @@ package event +import ( + "encoding/json" +) + type BotCommandsEventContent struct { Sigil string `json:"sigil,omitempty"` Commands []*BotCommand `json:"commands,omitempty"` @@ -40,6 +44,6 @@ type BotCommandArgument struct { } type BotCommandInput struct { - Syntax string `json:"syntax"` - Arguments map[string]any `json:"arguments,omitempty"` + Syntax string `json:"syntax"` + Arguments json.RawMessage `json:"arguments,omitempty"` }