Skip to content

OpenDiscussionCommandHandlerConstructorParams

Constructor parameters for OpenDiscussionCommandHandler.

Import:

import type { OpenDiscussionCommandHandlerConstructorParams } from '@mnaoumov/obsidian-lib/command-handlers/open-discussion-command-handler';

Signature:

export interface OpenDiscussionCommandHandlerConstructorParams extends GetGitHubDiscussionUrlParams

Extends: GetGitHubDiscussionUrlParams

Properties

PropertyTypeDescription
category?stringThe category slug, such as q-a or ideas. The repository must have this category.
(Inherited from GetGitHubDiscussionUrlParams)
gitHubRepostringThe repository, as owner/name.
(Inherited from GetGitHubDiscussionUrlParams)
isDiscussionsEnabledbooleanWhether the repository has Discussions enabled. When false, the command is unavailable and execution does not open a browser. Prefer omitting registration altogether in that case.