Table of Contents

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

type RoleConnectionMetadataType

The type of the metadata value.

key string

The dictionary key for the metadata field. Max 50 characters.

name string

The name of the metadata visible in user profile. Max 100 characters.

description string

The description of the metadata visible in user profile. Max 200 characters.

nameLocalizations IDictionary<string, string>

Translations for the name.

descriptionLocalizations IDictionary<string, string>

Translations for the description.

Properties

Description

Gets or sets the description of the metadata field.

public string Description { get; set; }

Property Value

string

DescriptionLocalizations

Gets or sets translations of the description. null if not set.

public IReadOnlyDictionary<string, string> DescriptionLocalizations { get; set; }

Property Value

IReadOnlyDictionary<string, string>

Key

Gets or sets the dictionary key for the metadata field.

public string Key { get; set; }

Property Value

string

Name

Gets or sets the name of the metadata field.

public string Name { get; set; }

Property Value

string

NameLocalizations

Gets or sets translations of the name. null if not set.

public IReadOnlyDictionary<string, string> NameLocalizations { get; set; }

Property Value

IReadOnlyDictionary<string, string>

Type

Gets or sets the of metadata value.

public RoleConnectionMetadataType Type { get; set; }

Property Value

RoleConnectionMetadataType

Methods

FromRoleConnectionMetadata(RoleConnectionMetadata)

Initializes a new RoleConnectionMetadataProperties with the data from provided RoleConnectionMetadata.

public static RoleConnectionMetadataProperties FromRoleConnectionMetadata(RoleConnectionMetadata metadata)

Parameters

metadata RoleConnectionMetadata

Returns

RoleConnectionMetadataProperties