Fix Channel Types Attribute (#2066)

* fix channeltypes attribute

* fix channeltypes attribute
This commit is contained in:
Cenk Ergen
2022-01-30 09:54:48 +03:00
committed by GitHub
parent 37ada59639
commit 1917961ee3

View File

@@ -72,7 +72,8 @@ namespace Discord.Interactions
public override void Write (ApplicationCommandOptionProperties properties, IParameterInfo parameter) public override void Write (ApplicationCommandOptionProperties properties, IParameterInfo parameter)
{ {
properties.ChannelTypes = _channelTypes; if (_channelTypes is not null)
properties.ChannelTypes = _channelTypes;
} }
} }