It seems that the new Thread History Messages feature in Discord clients has a bug.
When you update the default value of Thread History or create a new client, it fails with the following error:
invalid JSON: json: cannot unmarshal string into Go struct field DiscordClientConfig.config.discord.threadHistoryLimit of type int
The error is related to the PUT request to /api/v1/admin/clients/. I have attached two files with the PUT HTTP payload, one valid and one invalid (the one containing the “threadHistoryLimit” definition).
valid_payload.json
invalid_payload.json