mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add function to check if comment is flagged as spoiler
This commit is contained in:
parent
f03287856b
commit
0521895f11
1 changed files with 4 additions and 0 deletions
|
|
@ -233,6 +233,10 @@ func (c *Comment) FlagAsSpoiler() error {
|
|||
return c.vote("spoiler", "spoiler")
|
||||
}
|
||||
|
||||
func (c *Comment) IsFlaggedAsSpoiler() bool {
|
||||
return c.markedAs("spoiler")
|
||||
}
|
||||
|
||||
// UnflagAsSpoiler rewokes the request to the user (and / or crunchyroll?) to mark the
|
||||
// comment as spoiler. Only works if the user has flagged the comment as spoiler.
|
||||
func (c *Comment) UnflagAsSpoiler() error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue