diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b1378917..f1eeb49fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ - +- MessagingMessageの型を修正 diff --git a/etc/misskey-js.api.md b/etc/misskey-js.api.md index 5aacf2dbc..362b73a99 100644 --- a/etc/misskey-js.api.md +++ b/etc/misskey-js.api.md @@ -2171,7 +2171,10 @@ type MessagingMessage = { text: string | null; user: User; userId: User['id']; - groupId: string; + recipient?: User | null; + recipientId: User['id'] | null; + group?: UserGroup | null; + groupId: UserGroup['id'] | null; }; // @public (undocumented) diff --git a/src/entities.ts b/src/entities.ts index dc4ff40a5..87c813463 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -167,7 +167,10 @@ export type MessagingMessage = { text: string | null; user: User; userId: User['id']; - groupId: string; // TODO + recipient?: User | null; + recipientId: User['id'] | null; + group?: UserGroup | null; + groupId: UserGroup['id'] | null; }; export type CustomEmoji = {