Fix missing SelectMenu Type, ChannelTypes, DefaultValues in ComponentBuilder.AddComponent (#3186)
This commit is contained in:
@@ -75,7 +75,7 @@ public class ComponentBuilder
|
||||
AddComponent(cmp, row);
|
||||
break;
|
||||
case SelectMenuComponent menu:
|
||||
WithSelectMenu(menu.CustomId, menu.Options?.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.IsDefault)).ToList(), menu.Placeholder, menu.MinValues, menu.MaxValues, menu.IsDisabled, row);
|
||||
WithSelectMenu(menu.CustomId, menu.Options?.Select(x => new SelectMenuOptionBuilder(x.Label, x.Value, x.Description, x.Emote, x.IsDefault)).ToList(), menu.Placeholder, menu.MinValues, menu.MaxValues, menu.IsDisabled, row, menu.Type, menu.ChannelTypes.ToArray(), menu.DefaultValues.ToArray());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Discord.Net.Converters
|
||||
case ComponentType.MentionableSelect:
|
||||
case ComponentType.RoleSelect:
|
||||
case ComponentType.UserSelect:
|
||||
messageComponent = new API.SelectMenuComponent();
|
||||
messageComponent = new API.SelectMenuComponent(){Type = (ComponentType)typeProperty};
|
||||
break;
|
||||
case ComponentType.TextInput:
|
||||
messageComponent = new API.TextInputComponent();
|
||||
|
||||
Reference in New Issue
Block a user