This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| /// <summary> | |
| /// Represents an optional parameter; ie a parameter which may or may not be sent to Discord. | |
| /// Normally this problem is handled using <c>[JsonIgnore(Condition = JsonIgnoreCondition.IgnoreWhenNull)]</c>, | |
| /// but this is unfortunately not always possible. | |
| /// </summary> | |
| /// <typeparam name="TParam">Any nullable parameter type.</typeparam> | |
| public struct OptionalParameter<TParam> | |
| { |