diff --git a/packages/megalodon/src/megalodon.ts b/packages/megalodon/src/megalodon.ts index b2f62e4adf..19cd5c5551 100644 --- a/packages/megalodon/src/megalodon.ts +++ b/packages/megalodon/src/megalodon.ts @@ -1041,7 +1041,7 @@ export interface MegalodonInterface { * * @return Array of lists. */ - getLists(): Promise<Response<Array<Entity.List>>> + getLists(id: string): Promise<Response<Array<Entity.List>>> /** * Show a single list. * diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 521cc041f1..3a154b68ea 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -1714,9 +1714,9 @@ export default class Misskey implements MegalodonInterface { /** * POST /api/users/lists/list */ - public async getLists(): Promise<Response<Array<Entity.List>>> { + public async getLists(id: string): Promise<Response<Array<Entity.List>>> { return this.client - .post<Array<MisskeyAPI.Entity.List>>('/api/users/lists/list') + .post<Array<MisskeyAPI.Entity.List>>('/api/users/lists/list', { userId: id }) .then(res => ({ ...res, data: res.data.map(l => MisskeyAPI.Converter.list(l)) })) }