Add function to check if comment is flagged as spoiler

This commit is contained in:
bytedream 2022-06-23 16:59:54 +02:00
parent f03287856b
commit 0521895f11

View file

@ -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 {