mirror of
https://github.com/Expand-sys/expandchatbotv2
synced 2026-03-22 12:27:11 +11:00
aaaaa
This commit is contained in:
parent
120275b42b
commit
39a3820d83
1 changed files with 7 additions and 6 deletions
|
|
@ -35,11 +35,7 @@ module.exports = {
|
||||||
});
|
});
|
||||||
image_url = response.data.data[0].url;
|
image_url = response.data.data[0].url;
|
||||||
error = response
|
error = response
|
||||||
|
let embed = new Embed({
|
||||||
} catch(e){
|
|
||||||
error = e.response.data.error.message
|
|
||||||
}
|
|
||||||
let embed = new Embed({
|
|
||||||
"type": "rich",
|
"type": "rich",
|
||||||
"title": `Prompt: ${interaction.options.getString("prompt")}`,
|
"title": `Prompt: ${interaction.options.getString("prompt")}`,
|
||||||
"description": "",
|
"description": "",
|
||||||
|
|
@ -51,6 +47,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
sendResponse(interaction, ``, [embed])
|
sendResponse(interaction, ``, [embed])
|
||||||
|
} catch(e){
|
||||||
|
error = e.response.data.error.message
|
||||||
|
sendResponse(interaction, e.response.data.error.message)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue