Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for spoilers #1216

Closed
k-boyle opened this issue Dec 19, 2018 · 1 comment · Fixed by #1255
Closed

Add support for spoilers #1216

k-boyle opened this issue Dec 19, 2018 · 1 comment · Fixed by #1255

Comments

@k-boyle
Copy link
Contributor

k-boyle commented Dec 19, 2018

Spoilers are on canary and they apply to text (just need to add a markdown), and images

@Chris-Johnston
Copy link
Collaborator

Chris-Johnston commented Jan 31, 2019

This feature has been rolled-out. The syntax is ||text||.

foxbot pushed a commit that referenced this issue May 17, 2019
Resolves #1216.

* Add support for spoiler formatting

* Implement support for sending message attachments that are spoilers

* use consistent naming

* update docstring for new isSpoiler param

* move extension method to be under core project, make spoiler prefix a const

* typo fix

* update missing xmldocs

* move SpoilerPrefix const outside of interface

* Add isSpoiler support to webhook client

adds the isSpoiler field to uploading files with a webhook, which will only
insert "SPOILER_" to the start of the filename. This does not include other
fields in the payload, as this is not in the documentation, and was not observed
like in the regular client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants