Skip to content

Unable to update or create a client with Threat History Messages configuration #21

@AdriRayns

Description

@AdriRayns

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions