Skip to content

Commit

Permalink
fix: MessagingMessageの型を修正 (#28)
Browse files Browse the repository at this point in the history
* fix messaging

* add changelog
  • Loading branch information
tamaina authored Sep 20, 2021
1 parent 1243e6a commit fa98dab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@

- MessagingMessageの型を修正
5 changes: 4 additions & 1 deletion etc/misskey-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 4 additions & 1 deletion src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit fa98dab

Please sign in to comment.