UNPKG

1.14 kBTypeScriptView Raw
1import type { TokenOverridable } from './common';
2interface Channel {
3 /** @description Channel containing bookmark. */
4 channel_id: string;
5}
6interface ID {
7 bookmark_id: string;
8}
9interface BookmarkFields {
10 /** @description Title for the bookmark. */
11 title: string;
12 /** @description Link to bookmark. */
13 link: string;
14 /** @description Emoji tag to apply to the bookmark. */
15 emoji?: string;
16}
17export interface BookmarksAddArguments extends Channel, BookmarkFields, TokenOverridable {
18 /** @description Type of the bookmark. Only `link` is supported at the moment. */
19 type: 'link';
20 /** @description ID of the entity being bookmarked. Only applies to message and file types. */
21 entity_id?: string;
22 /** @description ID of this bookmark's parent. */
23 parent_id?: string;
24}
25export interface BookmarksEditArguments extends Channel, ID, Partial<BookmarkFields>, TokenOverridable {
26}
27export interface BookmarksListArguments extends Channel, TokenOverridable {
28}
29export interface BookmarksRemoveArguments extends Channel, ID, TokenOverridable {
30}
31export {};
32//# sourceMappingURL=bookmarks.d.ts.map
\No newline at end of file