InstagramEmbedDiscordBot icon indicating copy to clipboard operation
InstagramEmbedDiscordBot copied to clipboard

Add support for spoilers in text commands

Open dy-lin opened this issue 1 year ago • 3 comments

I'd like support for spoilers when using text commands just as is available with slash commands.

By updating the prefix to include the two pipes, the bot still recognizes the instagram link.

 "Prefix": [ "https://www.instagram.com/", "https://instagram.com/", "http://www.instagram.com/", "http://instagram.com/", "||https://instagram.com/", "|| https://instagram.com/"  ]

The bot could register that the prefix contains pipes and use the isSpoiler parameter in FileAttachment (like with the slash commands).

It appears the infrastructure is already present, and just needs to detect whether the text command or prefix contains pipes and adjust accordingly.

dy-lin avatar Jul 29 '23 04:07 dy-lin

It's certainly feasible to do. What is your use case for this though? I would think that it would be easier and more user friendly to use the slash command to do this.

bman46 avatar Jul 29 '23 05:07 bman46

I mostly use Discord on mobile and find slash commands clunky to use since you have to select each parameter.

dy-lin avatar Jul 31 '23 15:07 dy-lin

Ok, makes sense. For now, I am prioritizing #85 but after that I should be able to get around to it as the changes required should not be too complex.

bman46 avatar Aug 01 '23 03:08 bman46