コメント追加したり
This commit is contained in:
parent
1c45e759c3
commit
b9575d2c5b
22 changed files with 945 additions and 809 deletions
|
@ -3,6 +3,11 @@ import { Score } from '../../common/types/score';
|
|||
import { api } from '../services/misskey';
|
||||
import { toSignedString } from './to-signed-string';
|
||||
|
||||
/**
|
||||
* ユーザーのスコアを取得します。
|
||||
* @param user ユーザー
|
||||
* @returns ユーザーのスコア
|
||||
*/
|
||||
export const getScores = async (user: User): Promise<Score> => {
|
||||
const miUser = await api<Record<string, number>>(user.host, 'users/show', { username: user.username }, user.token);
|
||||
if (miUser.error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue