Class RoleConnectionMetadataProperties
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Properties object used to create or modify RoleConnectionMetadata object.
public class RoleConnectionMetadataProperties
- Inheritance
-
RoleConnectionMetadataProperties
- Inherited Members
Constructors
RoleConnectionMetadataProperties()
Initializes a new instance of RoleConnectionMetadataProperties.
public RoleConnectionMetadataProperties()
RoleConnectionMetadataProperties(RoleConnectionMetadataType, string, string, string, IDictionary<string, string>, IDictionary<string, string>)
Initializes a new instance of RoleConnectionMetadataProperties.
public RoleConnectionMetadataProperties(RoleConnectionMetadataType type, string key, string name, string description, IDictionary<string, string> nameLocalizations = null, IDictionary<string, string> descriptionLocalizations = null)
Parameters
typeRoleConnectionMetadataTypeThe type of the metadata value.
keystringThe dictionary key for the metadata field. Max 50 characters.
namestringThe name of the metadata visible in user profile. Max 100 characters.
descriptionstringThe description of the metadata visible in user profile. Max 200 characters.
nameLocalizationsIDictionary<string, string>Translations for the name.
descriptionLocalizationsIDictionary<string, string>Translations for the description.
Properties
Description
Gets or sets the description of the metadata field.
public string Description { get; set; }
Property Value
DescriptionLocalizations
Gets or sets translations of the description. null if not set.
public IReadOnlyDictionary<string, string> DescriptionLocalizations { get; set; }
Property Value
Key
Gets or sets the dictionary key for the metadata field.
public string Key { get; set; }
Property Value
Name
Gets or sets the name of the metadata field.
public string Name { get; set; }
Property Value
NameLocalizations
Gets or sets translations of the name. null if not set.
public IReadOnlyDictionary<string, string> NameLocalizations { get; set; }
Property Value
Type
Gets or sets the of metadata value.
public RoleConnectionMetadataType Type { get; set; }
Property Value
Methods
FromRoleConnectionMetadata(RoleConnectionMetadata)
Initializes a new RoleConnectionMetadataProperties with the data from provided RoleConnectionMetadata.
public static RoleConnectionMetadataProperties FromRoleConnectionMetadata(RoleConnectionMetadata metadata)
Parameters
metadataRoleConnectionMetadata