File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# midjourney-fetch
2
- [ ![ npm version] ( https://img.shields.io/npm/v/midjouryney -fetch.svg )] ( https://www.npmjs.com/package/midjouryney -fetch ) ![ GitHub Workflow Status] ( https://img.shields.io/github/actions/workflow/status/GPTGenius/midjouryney -fetch/ci.yml?branch=main ) ![ node-current (scoped)] ( https://img.shields.io/node/v/midjouryney -fetch ) ![ GitHub] ( https://img.shields.io/github/license/GPTGenius/midjouryney -fetch )
2
+ [ ![ npm version] ( https://img.shields.io/npm/v/midjourney -fetch.svg )] ( https://www.npmjs.com/package/midjourney -fetch ) ![ GitHub Workflow Status] ( https://img.shields.io/github/actions/workflow/status/GPTGenius/midjourney -fetch/ci.yml?branch=main ) ![ node-current (scoped)] ( https://img.shields.io/node/v/midjourney -fetch ) ![ GitHub] ( https://img.shields.io/github/license/GPTGenius/midjourney -fetch )
3
3
4
4
Fetch api for midjournery on discord
5
5
6
6
## Usage
7
7
``` typescript
8
8
import { Midjourney } from ' midjourney-fetch'
9
9
10
- const midjouryney = new Midjouryney ({
10
+ const midjourney = new Midjourney ({
11
11
channelId: ' your channelId' ,
12
12
serverId: ' your serverId' ,
13
13
discordToken: ' your discordToken' ,
14
14
})
15
15
16
- const images = await midjouryney .imagine (' your prompt' )
16
+ const images = await midjourney .imagine (' your prompt' )
17
17
18
18
console .log (images [0 ].url )
19
19
```
You can’t perform that action at this time.
0 commit comments