discordgo icon indicating copy to clipboard operation
discordgo copied to clipboard

Support for null values

Open JurrijnP opened this issue 4 years ago • 1 comments

I have been looking into endpoints where null values would be needed for some states. Good example is #571. After trying some stuff I do think the best solution would be something like in #700.

This however would be breaking quite some functions if you'd add support for all cases. However I think it would be perfect for a V2 of this library. You can think of having NullString, NullBool etc. If somebody knows something else please show.

JurrijnP avatar Feb 03 '20 15:02 JurrijnP

I have made a PR (#744) to support the null values. This does not solve the issue of resetting a struct field, i.e. Embed in MessageEdit.

JurrijnP avatar Mar 03 '20 17:03 JurrijnP