Browse Source

Fix Channel Types Attribute (#2066)

* fix channeltypes attribute

* fix channeltypes attribute
tags/3.2.1
Cenk Ergen GitHub 3 years ago
parent
commit
1917961ee3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.Interactions/TypeConverters/DefaultEntityTypeConverter.cs

+ 2
- 1
src/Discord.Net.Interactions/TypeConverters/DefaultEntityTypeConverter.cs View File

@@ -72,7 +72,8 @@ namespace Discord.Interactions

public override void Write (ApplicationCommandOptionProperties properties, IParameterInfo parameter)
{
properties.ChannelTypes = _channelTypes;
if (_channelTypes is not null)
properties.ChannelTypes = _channelTypes;
}
}



Loading…
Cancel
Save