Closed sasinduk closed 1 year ago
This fixed from npm install with latest of the repository,
Imagine [2042758044] twilight forestry nonce 1126954084264312832 2023-07-07T19:13:11.483Z
api.DiscordBaseUrl https://discord.com
api.fetchUrl https://discord.com/api/v9/interactions
imagine.error [Error: ImagineApi failed with status 400]
api.error.config {
payload: {
type: 2,
application_id: 'xxx',
guild_id: 'xxx',
channel_id: 'xxx',
session_id: 'xxx',
data: {
version: '1118961510123847772',
id: 'xxx',
name: 'imagine',
type: 1,
options: [
{ type: 3, name: 'prompt', value: '[2042758044] twilight forestry' }
],
application_command: {
id: 'xxx',
application_id: 'xxx',
version: '1118961510123847772',
default_permission: true,
default_member_permissions: null,
type: 1,
nsfw: false,
name: 'imagine',
description: 'Create images with Midjourney',
dm_permission: true,
options: [
{
type: 3,
name: 'prompt',
description: 'The prompt to imagine',
required: true
}
]
},
attachments: []
},
nonce: '1126954084264312832'
},
config: {
ChannelId: 'xxx',
SalaiToken: 'xxx',
SessionId: 'xxx',
Debug: true,
Limit: 50,
MaxWait: 200,
DiscordBaseUrl: 'https://discord.com',
WsBaseUrl: 'xxx',
ServerId: 'xxx',
HuggingFaceToken: 'xxx',
Ws: false
}
}
I was working last week and it went good. From yesterday it's failing returning 400.
api.DiscordBaseUrl https: //discord.com api.fetchUrl https: //discord.com/api/v9/interactions imagine.error [Error: ImagineApi failed with status 400] api.error.config { payload: { type: 2, application_id: '', guild_id: '', channel_id: '', session_id: '', data: { version: '', id: '', name: 'imagine', type: 1, options: [ { type: 3, name: 'prompt', value: '[ 4758450366 ] draw a cat' } ],