Im very new to coding and i want to make a bot that sends an image link, marked as a spoiler.
I got this from a different stack overflow question
file = ctx.message.attachments[0] file.filename = f"SPOILER_{file.filename}" spoiler = await file.to_file() await ctx.send(file=spoiler)
The problem is i have no idea where to put the image link!
(If you’re wondering why i didn’t ask in a comment on that post, its because i don’t have enough rep)
Advertisement
Answer
Found the answer, if you add || around the link like this ||url|| it just wont embed. But if you add a space like this || url || than it will be marked as a spoiler.