Skip to content
Interfaceplugin-linked-rolesv0.1.0

LinkedRoleRecord

One value that Discord compares for a Linked Role, like matches won or a "verified" flag. A server admin sets a role's requirement against it.

Its key in records can only use a-z, 0-9, and _, and can be 50 characters long at most.

interface LinkedRoleRecord

description

A longer explanation of the record. 200 characters at most.

description: string;

descriptionLocalizations

The description in other languages, by Discord locale code.

descriptionLocalizations?: LocalizationMap | undefined

name

What Discord shows for the record. 100 characters at most.

name: string;

type

A member of RecordType, which sets how Discord compares the value. values returns a whole number for an integer type, a Date for a datetime type, and true or false for a boolean type.

RecordType is ApplicationRoleConnectionMetadataType from discord-api-types under a shorter name.