Browse Source

fix channeltypes attribute

pull/2066/head^2
Cenk Ergen 3 years ago
parent
commit
dac7b73e43
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.AddRange(_channelTypes);
}
}



Loading…
Cancel
Save