UNPKG

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