interaction-kit icon indicating copy to clipboard operation
interaction-kit copied to clipboard

Incorrect Option Serialization Type

Open IanMitchell opened this issue 3 years ago • 1 comments

Per Vlad and ckohen, the serialization should be typed like this:

Exclude<RESTPostAPIChatInputApplicationCommandsJSONBody["options"], undefined>[number]

IanMitchell avatar Jul 25 '22 19:07 IanMitchell

When updating, we should change the following code style:

		if (this.channelTypes != null) {
			payload.channel_types = this.channelTypes;
		}

We want to allow null and undefined values in, so we should just write the value to the payload itself to avoid bugs.

IanMitchell avatar Jul 25 '22 21:07 IanMitchell