T

SettingsEntry

A registered Unbound settings entry, mirroring Discord's SETTING_RENDERER_CONFIG route shape.

type SettingsEntry = { … }

Members

Keeps the route registered but leaves its row out of the settings overview.

IconComponent?React.ComponentType

The icon drawn at the start of the row.

keystring

Unique id of the entry. Registering an existing key replaces that entry and logs a warning.

parentstring | null

The key of the parent entry; null for an entry at the top of the settings overview.

The screen the row opens.

section?string

The label of the overview section the row belongs to; Unbound's own entries use 'Unbound'.

type"route"

Always 'route': the entry opens its own screen.

usePredicate?() => boolean

A hook returning whether Discord shows the row; omitted, it always shows.

useTitle() => string

A hook returning the row and screen title.

useTrailing?() => React.ReactNode

A hook returning what the row shows at its end, such as a count.