Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ed710dc45a |
@@ -5,13 +5,13 @@
|
||||
## インストール
|
||||
```bash
|
||||
# npm
|
||||
npm install git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.5
|
||||
npm install git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.6
|
||||
|
||||
# yarn
|
||||
yarn add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.5
|
||||
yarn add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.6
|
||||
|
||||
# pnpm
|
||||
pnpm add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.5
|
||||
pnpm add git+https://gitea.last2014.com/last2014/better-uwuzu-sdk.git#1.1.6
|
||||
```
|
||||
> **NOTE**
|
||||
> このSDKはnpmリポジトリがありません。Gitリポジトリを使用しています。
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "better-uwuzu-sdk",
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"description": "A better uwuzu SDK.",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
|
||||
@@ -39,14 +39,18 @@ const Parser: parserType = (data, type, endpoint) => {
|
||||
|
||||
if (type === "request") {
|
||||
if (result.media && result.text && endpoint === "ueuse/create") {
|
||||
if (result.media.photo) {
|
||||
for (let i = 0; i < result.media.photo.length; i++) {
|
||||
result[`photo${i + 1}`] = result.media.photo[i];
|
||||
}
|
||||
}
|
||||
|
||||
if (result.media.video) {
|
||||
for (let i = 0; i < result.media.video.length; i++) {
|
||||
result[`video${i + 1}`] = result.media.video[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user