Class ModalProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class ModalProperties : IEnumerable<IComponentProperties>, IEnumerable
- Inheritance
-
ModalProperties
- Implements
-
- Inherited Members
-
Constructors
ModalProperties(string, string)
public ModalProperties(string customId, string title)
Parameters
customId
string
title
string
ModalProperties(string, string, IEnumerable<IComponentProperties>)
public ModalProperties(string customId, string title, IEnumerable<IComponentProperties> components)
Parameters
customId
string
title
string
components
IEnumerable<IComponentProperties>
Properties
Components
[JsonPropertyName("components")]
public IEnumerable<IComponentProperties> Components { get; set; }
Property Value
- IEnumerable<IComponentProperties>
CustomId
[JsonPropertyName("custom_id")]
public string CustomId { get; set; }
Property Value
- string
Title
[JsonPropertyName("title")]
public string Title { get; set; }
Property Value
- string
Methods
AddComponents(params IComponentProperties[])
public ModalProperties AddComponents(params IComponentProperties[] components)
Parameters
components
IComponentProperties[]
Returns
- ModalProperties
AddComponents(IEnumerable<IComponentProperties>)
public ModalProperties AddComponents(IEnumerable<IComponentProperties> components)
Parameters
components
IEnumerable<IComponentProperties>
Returns
- ModalProperties
WithComponents(IEnumerable<IComponentProperties>)
public ModalProperties WithComponents(IEnumerable<IComponentProperties> components)
Parameters
components
IEnumerable<IComponentProperties>
Returns
- ModalProperties
WithCustomId(string)
public ModalProperties WithCustomId(string customId)
Parameters
customId
string
Returns
- ModalProperties
WithTitle(string)
public ModalProperties WithTitle(string title)
Parameters
title
string
Returns
- ModalProperties