Class DiscordGuildMembershipScreeningField
Represents a field in a guild's membership screening form
Inheritance
System.Object
DiscordGuildMembershipScreeningField
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public class DiscordGuildMembershipScreeningField
Constructors
| Improve this Doc View SourceDiscordGuildMembershipScreeningField(MembershipScreeningFieldType, String, IEnumerable<String>, Boolean)
Initializes a new instance of the DiscordGuildMembershipScreeningField class.
Declaration
public DiscordGuildMembershipScreeningField(MembershipScreeningFieldType type, string label, IEnumerable<string> values, bool required = true)
Parameters
Type | Name | Description |
---|---|---|
MembershipScreeningFieldType | type | The type. |
System.String | label | The label. |
System.Collections.Generic.IEnumerable<System.String> | values | The values. |
System.Boolean | required | If true, required. |
Properties
| Improve this Doc View SourceIsRequired
Gets whether the user has to fill out this field
Declaration
public bool IsRequired { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Label
Gets the title of the field.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets the type of the field.
Declaration
public MembershipScreeningFieldType Type { get; }
Property Value
Type | Description |
---|---|
MembershipScreeningFieldType |
Values
Gets the list of rules
Declaration
public IReadOnlyList<string> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.String> |