Remora.Discord
Remora.Discord copied to clipboard
Re-type IMessageComponentData.cs#Values as a union array of snowflakes or strings
Following discussion in https://github.com/discord/discord-api-docs/pull/5823, my assumption in #275 appears to be incorrect, and the underlying type of the values
field depends on the type of select menu used. This PR resolves that; however, given the current implementation works, I would like to leave this as a draft until the API docs PR is resolved with hopefully a final answer.
Looks like a fine way to handle it. Please add variant test data for snowflake-typed value lists as well.
Are there any updates on this PR?
Hiya @Nihlus, no sorry. Discord's response to my docs PR seemed to indicate I hadn't conveyed my request well, and owing to various things at the time I didn't respond.
I could go for round two on the Discord docs, or we could leave things as-is (deserialising to a string) given the indeterminacy of this case, or we could follow Discord's comment that the data type should always match the type of the select menu and proceed with this implementation - happy to follow your call here 🙂.