Class ModalProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class ModalProperties : IEnumerable<ComponentProperties>, 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<ComponentProperties>)
public ModalProperties(string customId, string title, IEnumerable<ComponentProperties> components)
Parameters
customId
string
title
string
components
IEnumerable<ComponentProperties>
Properties
Components
[JsonPropertyName("components")]
public IEnumerable<ComponentProperties> Components { get; set; }
Property Value
- IEnumerable<ComponentProperties>
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 ComponentProperties[])
public ModalProperties AddComponents(params ComponentProperties[] components)
Parameters
components
ComponentProperties[]
Returns
- ModalProperties
AddComponents(IEnumerable<ComponentProperties>)
public ModalProperties AddComponents(IEnumerable<ComponentProperties> components)
Parameters
components
IEnumerable<ComponentProperties>
Returns
- ModalProperties
WithComponents(IEnumerable<ComponentProperties>)
public ModalProperties WithComponents(IEnumerable<ComponentProperties> components)
Parameters
components
IEnumerable<ComponentProperties>
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