2023-06-23 22:13:03 -06:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-02 16:18:30 -06:00
|
|
|
[Home](./index.md) > [firefish-js](./firefish-js.md) > [entities](./firefish-js.entities.md) > [Note](./firefish-js.entities.note.md)
|
2023-06-23 22:13:03 -06:00
|
|
|
|
|
|
|
## entities.Note type
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare type Note = {
|
|
|
|
id: ID;
|
|
|
|
createdAt: DateString;
|
|
|
|
text: string | null;
|
|
|
|
cw: string | null;
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
reply?: Note;
|
|
|
|
replyId: Note["id"];
|
|
|
|
renote?: Note;
|
|
|
|
renoteId: Note["id"];
|
|
|
|
files: DriveFile[];
|
|
|
|
fileIds: DriveFile["id"][];
|
|
|
|
visibility: "public" | "home" | "followers" | "specified";
|
|
|
|
visibleUserIds?: User["id"][];
|
|
|
|
localOnly?: boolean;
|
|
|
|
channel?: Channel["id"];
|
|
|
|
myReaction?: string;
|
|
|
|
reactions: Record<string, number>;
|
|
|
|
renoteCount: number;
|
|
|
|
repliesCount: number;
|
|
|
|
poll?: {
|
|
|
|
expiresAt: DateString | null;
|
|
|
|
multiple: boolean;
|
|
|
|
choices: {
|
|
|
|
isVoted: boolean;
|
|
|
|
text: string;
|
|
|
|
votes: number;
|
|
|
|
}[];
|
|
|
|
};
|
|
|
|
emojis: {
|
|
|
|
name: string;
|
|
|
|
url: string;
|
|
|
|
}[];
|
|
|
|
uri?: string;
|
|
|
|
url?: string;
|
|
|
|
updatedAt?: DateString;
|
|
|
|
isHidden?: boolean;
|
|
|
|
};
|
|
|
|
```
|
2023-07-02 16:18:30 -06:00
|
|
|
**References:** [ID](./firefish-js.entities.id.md)<!-- -->, [DateString](./firefish-js.entities.datestring.md)<!-- -->, [User](./firefish-js.entities.user.md)<!-- -->, [Note](./firefish-js.entities.note.md)<!-- -->, [DriveFile](./firefish-js.entities.drivefile.md)<!-- -->, [Channel](./firefish-js.entities.channel.md)
|
2023-06-23 22:13:03 -06:00
|
|
|
|