Jimmy_DB
DIAdiscord.js - Imagine an app
•Created by Jimmy_DB on 9/5/2023 in #djs-questions
connect two commands
the Hi,
I've built two separate commands. one that generates image from text input, and the other one generates video from text input for script and an image source(URL, local file).
I want to add one other to the image source option for the video-generating command with the image-generating command output.
which means, I want to connect two commands into one command, although I can transfer my image-generating code to the second command and just asynchronously use the generated image for video source.
Can someone help me out with this?
13 replies
DIAdiscord.js - Imagine an app
•Created by Jimmy_DB on 9/1/2023 in #djs-questions
How to respond image for autocomplete?
Hi, I'm trying to build a similar discord bot with a slash command just like as a default one called "giphy"
As you can see by trying '/giphy', as you type in some strings, you get the reponse containing arrays of images.
As far as i know the responses should look like [{name:"Choice 1", value: "1"}, {name:"Choice 2", value: "2"}, ... , ].
and the users see names of each object.
I tried to use canvas "@napi-rs/canvas" in order to embed image in the 'name' of respond, instead of string. However, I was not able to achieve what I expect.
Can anyone please help me out?
11 replies