Kraigie/nostrum

Wrong type for `interaction.data.options`

Closed this issue · 2 comments

I think the options key of the ApplicationCommandInteractionData struct is wrongly typed and it causes me Dialyzer errors. It should be a list but it is instead a single ApplicationCommandInteractionDataOption struct.

How options is currently typed :

@type options :: ApplicationCommandInteractionDataOption.t() | nil

How I think it should be typed :

@type options :: [ApplicationCommandInteractionDataOption.t()] | nil

I'm still new with Elixir so maybe there is something that I don't understand correctly.

made PR #436

Fixed by #436, thank you for the report