Hey There!
I was working on an image generator command,
async def gen(ctx: commands.Context, *, prompt:str):
await ctx.defer()
ETA = int(time.time() + 60)
msg = await ctx.respond(f" ETA of your image is <t:{ETA}:R>")
generator = Craiyon()
result = generator.generate(prompt)
images = result.images
for i in images:
image = BytesIO(base64.decodebytes(i.encode("utf-8")))
return await msg.edit(content= "`Content generated by craiyon.com`", file=discord.File(image, "image.png"))```
I'm a bit new to pycord and to ask how do we give a description to options such as the prompt str opt.